Skip to content

Commit

Permalink
changes according to #5475
Browse files Browse the repository at this point in the history
- added a submit button
- changed levels label to level.
  • Loading branch information
hasan-sh committed Jul 1, 2024
1 parent caf3410 commit ff7baae
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions templates/customize-adventure.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h2>{{_('customize_adventure')}}: <strong>{{adventure.name}}</strong></h2>

</div>
<div class="flex flex-row items-center mb-4">
<label for="custom_adventure_levels" class="inline-block w-40 text-xl" data-te-select-label-ref>{{_('available_in')}}</label>
<label for="custom_adventure_levels" class="inline-block w-40 text-xl" data-te-select-label-ref>{{_('level')}}</label>
<div class="flex-1">
<div class="dropdown dropdown-green rounded relative" id="level_select" data-value="" data-dropdown-initialize>
<button type="button" class="toggle-button font-semibold rounded inline-flex justify-between
Expand Down Expand Up @@ -223,18 +223,19 @@ <h2>{{_('customize_adventure')}}: <strong>{{adventure.name}}</strong></h2>
</div>
</div>
</div>
<div class="flex gap-2 items-center">
<div class="flex flex-row items-center text-center border-gray-500 border p-4 rounded-lg">
<input type="checkbox" name="agree_public" id="agree_public" class="mr-4" {% if adventure.public %}checked{% endif %}>
<label for="agree_public" class="text-sm italic w-full">{{_('adventure_terms')}}</label>
</div>
<div class="flex gap-2 mt-4 items-center">
<button id="submit_adventure" type="submit" class="green-btn">{{_('submit_program')}}</button>
<button type="reset" class="red-btn" id="remove_adventure_button"
hx-confirm="{{_('delete_adventure_prompt')}}"
hx-trigger="click"
hx-delete="/for-teachers/customize-adventure/{{adventure.id}}"
hx-swap="none"
_="on htmx:afterRequest if detail.xhr.status == 200 then window.open('/for-teachers', '_self')"
>{{_('remove')}}</button>
<div class="flex flex-row items-center text-center border-gray-500 border p-4 rounded-lg">
<input type="checkbox" name="agree_public" id="agree_public" class="mr-4" {% if adventure.public %}checked{% endif %}>
<label for="agree_public" class="text-sm italic w-full">{{_('adventure_terms')}}</label>
</div>
</div>
</form>

Expand Down

0 comments on commit ff7baae

Please sign in to comment.