Files
newznab-tmux/resources/views/themes/admin/role-edit.tpl
T
2018-03-29 10:49:44 +02:00

102 lines
2.9 KiB
Smarty

<div class="well well-sm">
<h1>{$title}</h1>
<a class="btn btn-success" href="{$smarty.const.WWW_TOP}/role-list.php"><i class="fa fa-arrow-left"></i> Go back</a>
<form action="{$SCRIPT_NAME}?action=submit" method="post">
{{csrf_field()}}
<table class="input data table table-striped responsive-utilities jambo-table">
<tr>
<td>Name:</td>
<td>
<input type="hidden" name="id" value="{$role.id}"/>
{if $role.id != '' && $role.id < 4}{$role.name}<input type="hidden" name="name"
value="{$role.name}" />{else}<input
name="name" type="text" value="{$role.name}" />
<div class="hint">The name of the role</div>
{/if}
</td>
</tr>
<tr>
<td>Api Requests:</td>
<td>
<input name="apirequests" type="text" value="{$role.apirequests}"/>
<div class="hint">Number of api requests allowed per 24 hour period</div>
</td>
</tr>
<tr>
<td>Download Requests:</td>
<td>
<input name="downloadrequests" type="text" value="{$role.downloadrequests}"/>
<div class="hint">Number of downloads allowed per 24 hour period</div>
</td>
</tr>
<tr>
<td>Invites:</td>
<td>
<input name="defaultinvites" type="text" value="{$role.defaultinvites}"/>
<div class="hint">Default number of invites to give users on account creation</div>
</td>
</tr>
<tr>
<td>Can Preview:</td>
<td>
{html_radios id="canpreview" name='canpreview' values=$yesno_ids output=$yesno_names selected=$role.canpreview separator='<br />'}
<div class="hint">Whether the role can preview screenshots</div>
</td>
</tr>
<tr>
<td>Hide Ads:</td>
<td>
{html_radios id="hideads" name='hideads' values=$yesno_ids output=$yesno_names selected=$role.hideads separator='<br />'}
<div class="hint">Whether ad's are hidden</div>
</td>
</tr>
<tr>
<td>Donation amount:</td>
<td>
<input name="donation" type="text" value="{$role.donation}"/>
</td>
</tr>
<tr>
<td>Years Added:</td>
<td>
<input name="addyears" type="text" value="{$role.addyears}"/>
</td>
</tr>
<tr>
<td>Is Default Role:</td>
<td>
{html_radios id="role" name='isdefault' values=$yesno_ids output=$yesno_names selected=$role.isdefault separator='<br />'}
<div class="hint">Make this the default role for new users</div>
</td>
</tr>
<tr>
<td>Excluded Categories</td>
<td>
{html_options style="height:105px;" multiple=multiple name="exccat[]" options=$catlist selected=$roleexccat}
<div class="hint">Use Ctrl and click to exclude multiple categories. This will prevent users
with this role from <br/>seeing these categories in the menu or search results.
</div>
</td>
</tr>
<tr>
<td></td>
<td>
<input class="btn btn-default" type="submit" value="Save"/>
</td>
</tr>
</table>
</form>
</div>