Properly disable the direct post button, add alert

This commit is contained in:
Hans5958 2022-04-29 12:13:22 +07:00
parent 89129347e2
commit 9ce818d59b

View file

@ -354,6 +354,7 @@ <h5 class="modal-title" id="exportModalLabel">Export Entry</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body d-flex flex-column">
<div class="period-status alert alert-danger small py-2" role="alert">Hold your horses! Don't submit it yet. We will allow this in due time.</div>
<p>Use the Post Direct to Reddit button or manually copy the text below and submit it as a new text post to <a href="https://www.reddit.com/r/placeAtlas2/" target="_blank" rel="noopener noreferrer">r/placeAtlas2</a> on Reddit.</p>
<p>Don't forget to flair it with the <span class="badge rounded-pill bg-primary"><i class="bi bi-tag" aria-hidden="true"></i> <span id="redditFlair">New Entry</span></span> tag.</p>
<p>We will then check it and add it to the atlas.</p>
@ -361,8 +362,7 @@ <h5 class="modal-title" id="exportModalLabel">Export Entry</h5>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Done</button>
<!-- <a id="exportDirectPost" class="btn btn-primary" href="#" target="_blank" rel="noopener noreferrer">Post Direct to Reddit</a> -->
<a id="exportDirectPost" class="btn btn-danger" href="#" target="_blank" rel="noopener noreferrer">THIS IS FOR TESTING DO NOT SUBMIT</a>
<a id="exportDirectPost" class="btn btn-primary disabled" href="#" target="_blank" rel="noopener noreferrer">Post Direct to Reddit</a>
</div>
</div>
</div>