764b9904f1
Shorten some variable names. Reduce the amount of duplication in the panel group routes. Rename isJs to js here and there. Localise group promotions. Phrases: Rename create_topic_create_topic_button to create_topic_create_button Rename quick_topic.create_topic_button to quick_topic.create_button Rename quick_topic.create_topic_button_short to quick_topic.create_button_short Rename panel_groups_create_create_group_button to panel_groups_create_button Rename panel_word_filters_create_create_word_filter_button to panel_word_filters_create_button Rename panel_pages_create_submit_button to panel_pages_create_button Add panel_group_promotions_create_head Add panel_group_promotions_from Add panel_group_promotions_to Add panel_group_promotions_two_way Add panel_group_promotions_level Add panel_group_promotions_create_button
69 lines
2.6 KiB
HTML
69 lines
2.6 KiB
HTML
{{template "header.html" . }}
|
|
<div class="colstack panel_stack">
|
|
{{template "panel_group_menu.html" . }}
|
|
<main class="colstack_right">
|
|
{{template "panel_before_head.html" . }}
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>{{.Name}}{{lang "panel_group_head_suffix"}}</h1></div>
|
|
</div>
|
|
<form action="/panel/groups/edit/promotions/submit/{{.ID}}?s={{.CurrentUser.Session}}" method="post">
|
|
<div class="colstack_item panel_group_promotions">
|
|
{{range .Promotions}}
|
|
<div class="rowitem">
|
|
<a href="#p-{{.ID}}">{{.FromGroup.Name}} -> {{.ToGroup.Name}}{{if .TwoWay}} (two way){{end}}</a>
|
|
<span> - level {{.Level}}</span>
|
|
<div class="to_right">
|
|
<a href="/panel/groups/promotions/delete/submit/{{$.ID}}-{{.ID}}?s={{$.CurrentUser.Session}}"><button form="nn">Delete</button></a>
|
|
</div>
|
|
</div>{{end}}
|
|
<div class="rowitem">
|
|
<button name="panel-button" class="formbutton form_middle_button">{{lang "panel_group_update_button"}}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
{{if .CurrentUser.Perms.EditGroup}}
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>{{lang "panel_group_promotions_create_head"}}</h1></div>
|
|
</div>
|
|
<div class="colstack_item the_form">
|
|
<form action="/panel/groups/promotions/create/submit/{{.ID}}?s={{.CurrentUser.Session}}" method="post">
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>{{lang "panel_group_promotions_from"}}</a></div>
|
|
<div class="formitem">
|
|
<select name="from">
|
|
{{range .Groups}}<option value="{{.ID}}">{{.Name}}</option>{{end}}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>{{lang "panel_group_promotions_to"}}</a></div>
|
|
<div class="formitem">
|
|
<select name="to">
|
|
{{range .Groups}}<option value="{{.ID}}">{{.Name}}</option>{{end}}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>{{lang "panel_group_promotions_two_way"}}</a></div>
|
|
<div class="formitem">
|
|
<select name="two-way" disabled>
|
|
<option value=1>{{lang "option_yes"}}</option>
|
|
<option selected value=0>{{lang "option_no"}}</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>{{lang "panel_group_promotions_level"}}</a></div>
|
|
<div class="formitem"><input name="level" type="number" value=0 /></div>
|
|
</div>
|
|
<div class="formrow form_button_row">
|
|
<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_group_promotions_create_button"}}</button></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{{end}}
|
|
|
|
</main>
|
|
</div>
|
|
{{template "footer.html" . }} |