LinkProtection/adm/style/acp_linkreplacement_body.html

127 lines
6.9 KiB
HTML
Executable file

{% INCLUDE 'overall_header.html' %}
<h1>{{ lang('SETTINGS') }}</h1>
<form id="acp_board" method="post" action="{{ U_ACTION }}">
<fieldset>
<legend>{{ lang('ACP_LINKPROTECTION_GENERAL') }}</legend>
<dl>
<dt><label for="linkprotection_maxlinks">{{ lang('ACP_LINKPROTECTION_MAXLINKS') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_LINKPROTECTION_MAXLINKS_EXPLANATION') }}</span></dt>
<dd><input type="number" class="number" id="linkprotection_maxlinks" name="linkprotection_maxlinks" value="{{ LINKPROTECTION_MAXLINKS }}" min="1"/></dd>
</dl>
<dl>
<dt><label for="linkprotection_key">{{ lang('ACP_LINKPROTECTION_KEY') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_LINKPROTECTION_KEY_EXPLANATION') }}<br><span style="color: crimson">{{ lang('ACP_LINKPROTECTION_WARNING') }}</span></span></dt>
<dd><input type="text" class="text" id="linkprotection_key" name="linkprotection_key" value="{{ LINKPROTECTION_KEY }}" readonly/>&nbsp;
<input class="button1" type="submit" id="linkprotection_newkey" name="linkprotection_newkey" value="{{ lang('ACP_LINKPROTECTION_NEWKEY') }}" /></dd>
</dl>
<dl>
<dt><label for="linkprotection_cipher">{{ lang('ACP_LINKPROTECTION_CIPHER') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_LINKPROTECTION_CIPHER_EXPLANATION') }}<br><span style="color: crimson">{{ lang('ACP_LINKPROTECTION_WARNING') }}</span></span></dt>
<dd><select name="linkprotection_cipher" id="linkprotection_cipher">
{% for CIPHER in loops.cipher_types %}
<option value={{ CIPHER.TYPE }} {% if CIPHER.TYPE === LINKPROTECTION_CIPHER %}selected="selected"{% endif %}>{{ CIPHER.NAME }}</option>
{% endfor %}
</select></dd>
</dl>
</fieldset>
<fieldset>
<legend>{{ lang('ACP_LINKPROTECTION_MANUAL') }}</legend>
<dl>
<dt><label for="linkprotection_manualenabled">{{ lang('ACP_LINKPROTECTION_MANUALENABLED') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_LINKPROTECTION_MANUALENABLED_EXPLANATION') }}</span></dt>
<label><input type="radio" class="radio" name="linkprotection_manualenabled" value="1" id="linkprotection_manualenabled" {% if LINKPROTECTION_MANUALENABLED %}checked="checked"{% endif %} /> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="linkprotection_manualenabled" value="0" {% if not LINKPROTECTION_MANUALENABLED %}checked="checked"{% endif %} /> {{ lang('NO') }}</label>
</dl>
{% if LINKPROTECTION_MANUALENABLED %}
<dl>
<dt><label for="linkprotection_strictmanual">{{ lang('ACP_LINKPROTECTION_STRICTMANUAL') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_LINKPROTECTION_STRICTMANUAL_EXPLANATION') }}</span></dt>
<label><input type="radio" class="radio" name="linkprotection_strictmanual" value="1" id="linkprotection_strictmanual" {% if LINKPROTECTION_STRICTMANUAL %}checked="checked"{% endif %} /> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="linkprotection_strictmanual" value="0" {% if not LINKPROTECTION_STRICTMANUAL %}checked="checked"{% endif %} /> {{ lang('NO') }}</label>
</dl>
<dl>
<dt><label for="linkprotection_manualtitle">{{ lang('ACP_LINKPROTECTION_MANUALTITLE') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_LINKPROTECTION_MANUALTITLE_EXPLANATION') }}</span></dt>
<dd><input type="text" class="text" id="linkprotection_manualtitle" name="linkprotection_manualtitle" value="{{ LINKPROTECTION_MANUALTITLE }}"/></dd>
</dl>
<dl>
<dt><label for="linkprotection_manuallength">{{ lang('ACP_LINKPROTECTION_MANUALLENGTH') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_LINKPROTECTION_MANUALLENGTH_EXPLANATION') }}</span></dt>
<dd><input type="number" class="number" id="linkprotection_manuallength" name="linkprotection_manuallength" value="{{ LINKPROTECTION_MANUALLENGTH }}" min="1"/></dd>
</dl>
<dl>
<dt><label for="linkprotection_manualtags">{{ lang('ACP_LINKPROTECTION_MANUALTAGS') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_LINKPROTECTION_MANUALTAGS_EXPLANATION') }}</span></dt>
<dd><input type="text" class="text" id="linkprotection_manualtags" name="linkprotection_manualtags" value="{{ LINKPROTECTION_MANUALTAGS }}"/></dd>
</dl>
{% endif %}
</fieldset>
<fieldset>
<legend>{{ lang('ACP_LINKPROTECTION_AUTOMATIC') }}</legend>
<dl>
<dt><label for="linkprotection_automaticenabled">{{ lang('ACP_LINKPROTECTION_AUTOMATICENABLED') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_LINKPROTECTION_AUTOMATICENABLED_EXPLANATION') }}</span></dt>
<label><input type="radio" class="radio" name="linkprotection_automaticenabled" value="1" id="linkprotection_automaticenabled" {% if LINKPROTECTION_AUTOMATICENABLED %}checked="checked"{% endif %} /> {{ lang('YES') }}</label>
<label><input type="radio" class="radio" name="linkprotection_automaticenabled" value="0" {% if not LINKPROTECTION_AUTOMATICENABLED %}checked="checked"{% endif %} /> {{ lang('NO') }}</label>
</dl>
{% if LINKPROTECTION_AUTOMATICENABLED %}
<dl>
<dt><label for="linkprotection_automaticlength">{{ lang('ACP_LINKPROTECTION_AUTOMATICLENGTH') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_LINKPROTECTION_AUTOMATICLENGTH_EXPLANATION') }}</span></dt>
<dd><input type="number" class="number" id="linkprotection_automaticlength" name="linkprotection_automaticlength" value="{{ LINKPROTECTION_AUTOMATICLENGTH }}" min="1"/></dd>
</dl>
<dl>
<dt><label for="linkprotection_automaticlinks">{{ lang('ACP_LINKPROTECTION_AUTOMATICLINKS') ~ lang('COLON') }}</label><br /><span>{{ lang('ACP_LINKPROTECTION_AUTOMATICLINKS_EXPLANATION') }}</span></dt>
<dd><table class="zebra-table" style="width:75%">
<thead>
<tr>
<th width="45%">URL Match</th>
<th width="45%">Protected Link Title</th>
<th width="10%">Delete</th>
</tr>
</thead>
<tbody>
{% if loops.automatic_links|length %}
{% for ITEM in loops.automatic_links %}
<tr>
<td>{{ ITEM.URL }}</td>
<td>{{ ITEM.TITLE }}</td>
<td><input type='checkbox' class='checkbox' name='linkprotection_automatic_delete_{{ ITEM.ID }}' value='1'></td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
<table style="width:75%">
<tr>
<th width="45%">URL Match</th>
<th width="45%">Protected Link Title</th>
<th width="45%">Add</th>
</tr>
<tr>
<td><input type="text" class="text" name="linkprotection_automatic_add_url" value=""></td>
<td><input type="text" class="text" name="linkprotection_automatic_add_title" value=""></td>
<td><input type="checkbox" class="checkbox" name="linkprotection_automatic_add_checkbox" value="1"></td>
</tr>
</table></dd>
</dl>
{% endif %}
</fieldset>
<fieldset>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{{ lang('SUBMIT') }}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{{ lang('RESET') }}" />
</p>
{{ S_FORM_TOKEN }}
</fieldset>
</form>
{% INCLUDE 'overall_footer.html' %}