2019-09-29 04:56:39 +00:00
|
|
|
{{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>
|
2019-10-06 22:54:09 +00:00
|
|
|
{{if .Level}}<span> - {{lang "panel_group_promotions_level_prefix"}}{{.Level}}</span>{{end}}
|
|
|
|
{{if .Posts}}<span> - {{lang "panel_group_promotions_posts_prefix"}}{{.Posts}}</span>{{end}}
|
2019-09-29 04:56:39 +00:00
|
|
|
<div class="to_right">
|
2019-10-06 22:54:09 +00:00
|
|
|
<a href="/panel/groups/promotions/delete/submit/{{$.ID}}-{{.ID}}?s={{$.CurrentUser.Session}}"><button form="nn">{{lang "panel_group_promotions_delete_button"}}</button></a>
|
2019-09-29 04:56:39 +00:00
|
|
|
</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">
|
2019-09-30 10:15:50 +00:00
|
|
|
<div class="rowitem"><h1>{{lang "panel_group_promotions_create_head"}}</h1></div>
|
2019-09-29 04:56:39 +00:00
|
|
|
</div>
|
|
|
|
<div class="colstack_item the_form">
|
|
|
|
<form action="/panel/groups/promotions/create/submit/{{.ID}}?s={{.CurrentUser.Session}}" method="post">
|
|
|
|
<div class="formrow">
|
2019-09-30 10:15:50 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_group_promotions_from"}}</a></div>
|
2019-09-29 04:56:39 +00:00
|
|
|
<div class="formitem">
|
|
|
|
<select name="from">
|
|
|
|
{{range .Groups}}<option value="{{.ID}}">{{.Name}}</option>{{end}}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2019-09-30 10:15:50 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_group_promotions_to"}}</a></div>
|
2019-09-29 04:56:39 +00:00
|
|
|
<div class="formitem">
|
|
|
|
<select name="to">
|
|
|
|
{{range .Groups}}<option value="{{.ID}}">{{.Name}}</option>{{end}}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2019-09-30 10:15:50 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_group_promotions_two_way"}}</a></div>
|
2019-09-29 04:56:39 +00:00
|
|
|
<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">
|
2019-09-30 10:15:50 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_group_promotions_level"}}</a></div>
|
2019-09-29 04:56:39 +00:00
|
|
|
<div class="formitem"><input name="level" type="number" value=0 /></div>
|
|
|
|
</div>
|
2019-10-06 22:20:37 +00:00
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_group_promotions_posts"}}</a></div>
|
|
|
|
<div class="formitem"><input name="posts" type="number" value=0 /></div>
|
|
|
|
</div>
|
2019-09-29 04:56:39 +00:00
|
|
|
<div class="formrow form_button_row">
|
2019-09-30 10:15:50 +00:00
|
|
|
<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_group_promotions_create_button"}}</button></div>
|
2019-09-29 04:56:39 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
{{template "footer.html" . }}
|