-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added template to choose the access duration
- Loading branch information
Showing
3 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
html/captive-portal/templates/activation/sponsor_choose_access_duration.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<form method="post" action="[% post_uri %]"> | ||
|
||
<div class="o-layout o-layout--center u-padding"> | ||
|
||
<div class="o-layout__item"> | ||
|
||
[% IF choose_access_duration.size > 1 %] | ||
<div class="input-container"> | ||
<label>[% i18n("Access duration") %]</label> | ||
<select name="access_duration"> | ||
<option value="">[% i18n('Select access duration') %]</option> | ||
[% FOREACH access_duration IN choose_access_duration %] | ||
<option value='[% access_duration.value %]'>[% access_duration.label %]</option> | ||
[% END %] | ||
</select> | ||
</div> | ||
[% END %] | ||
|
||
[%# submit %] | ||
<div class="u-margin-top"> | ||
<button type="submit" name="submit" class="c-btn c-btn--primary u-1/1"> | ||
[% i18n('Validate') %] | ||
</button> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</form> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters