Created template file for AJAX quick actions (#1381)

* Created template file for AJAX quick actions

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-02-06 21:20:49 +07:00 committed by GitHub
commit fed538625d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 54 additions and 53 deletions

View file

@ -6,6 +6,7 @@
**Merged pull requests:**
- Release 2.4.2 🐯 ([belomaxorka](https://github.com/belomaxorka))
- Created template file for AJAX quick actions [\#1381](https://github.com/torrentpier/torrentpier/pull/1381) ([belomaxorka](https://github.com/belomaxorka))
- Some bugfixes [\#1380](https://github.com/torrentpier/torrentpier/pull/1380) ([belomaxorka](https://github.com/belomaxorka))
## [v2.4.1](https://github.com/torrentpier/torrentpier/tree/v2.4.1) (2024-02-04)

View file

@ -0,0 +1,52 @@
<!-- IF EDITABLE_TPLS -->
<div id="editable-tpl-input" style="display: none;">
<span class="editable-inputs nowrap" style="display: none;">
<input type="text" class="editable-value"/>
<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;"/>
<input type="button" class="editable-cancel" value="x" style="width: 30px;"/>
</span>
</div>
<div id="editable-tpl-yesno-select" style="display: none;">
<span class="editable-inputs nowrap" style="display: none;">
<select class="editable-value">
<option value="1">&nbsp;{L_YES}&nbsp;</option>
<option value="0">&nbsp;{L_NO}&nbsp;</option>
</select>
<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;"/>
<input type="button" class="editable-cancel" value="x" style="width: 30px;"/>
</span>
</div>
<div id="editable-tpl-yesno-radio" style="display: none;">
<span class="editable-inputs nowrap" style="display: none;">
<label><input class="editable-value" type="radio" name="editable-value" value="1"/>{L_YES}</label>
<label><input class="editable-value" type="radio" name="editable-value" value="0"/>{L_NO}</label>&nbsp;
<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;"/>
<input type="button" class="editable-cancel" value="x" style="width: 30px;"/>
</span>
</div>
<div id="editable-tpl-yesno-gender" style="display: none;">
<span class="editable-inputs nowrap" style="display: none;">
<select class="editable-value">
<option value="0">&nbsp;{$lang['GENDER_SELECT'][0]}&nbsp;</option>
<option value="1">&nbsp;{$lang['GENDER_SELECT'][1]}&nbsp;</option>
<option value="2">&nbsp;{$lang['GENDER_SELECT'][2]}&nbsp;</option>
</select>
<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;">
<input type="button" class="editable-cancel" value="x" style="width: 30px;">
</span>
</div>
<div id="editable-tpl-yesno-twitter" style="display: none;">
<span class="editable-inputs nowrap" style="display: none;">
<input type="text" class="editable-value" value="{TWITTER}"/>
<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;">
<input type="button" class="editable-cancel" value="x" style="width: 30px;">
</span>
</div>
<div id="editable-tpl-yesno-birthday" style="display: none;">
<span class="editable-inputs nowrap" style="display: none;">
<input type="date" class="editable-value" value="{BIRTHDAY}"/>
<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;">
<input type="button" class="editable-cancel" value="x" style="width: 30px;">
</span>
</div>
<!-- ENDIF / EDITABLE_TPLS -->

View file

@ -144,59 +144,6 @@ input[type="checkbox"] { margin-bottom: -1px; }
</head>
<body>
<!-- IF EDITABLE_TPLS -->
<div id="editable-tpl-input" style="display: none;">
<span class="editable-inputs nowrap" style="display: none;">
<input type="text" class="editable-value" />
<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;" />
<input type="button" class="editable-cancel" value="x" style="width: 30px;" />
</span>
</div>
<div id="editable-tpl-yesno-select" style="display: none;">
<span class="editable-inputs nowrap" style="display: none;">
<select class="editable-value">
<option value="1">&nbsp;{L_YES}&nbsp;</option>
<option value="0">&nbsp;{L_NO}&nbsp;</option>
</select>
<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;" />
<input type="button" class="editable-cancel" value="x" style="width: 30px;" />
</span>
</div>
<div id="editable-tpl-yesno-radio" style="display: none;">
<span class="editable-inputs nowrap" style="display: none;">
<label><input class="editable-value" type="radio" name="editable-value" value="1" />{L_YES}</label>
<label><input class="editable-value" type="radio" name="editable-value" value="0" />{L_NO}</label>&nbsp;
<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;" />
<input type="button" class="editable-cancel" value="x" style="width: 30px;" />
</span>
</div>
<div id="editable-tpl-yesno-gender" style="display: none;">
<span class="editable-inputs nowrap" style="display: none;">
<select class="editable-value">
<option value="0">&nbsp;{$lang['GENDER_SELECT'][0]}&nbsp;</option>
<option value="1">&nbsp;{$lang['GENDER_SELECT'][1]}&nbsp;</option>
<option value="2">&nbsp;{$lang['GENDER_SELECT'][2]}&nbsp;</option>
</select>
<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;">
<input type="button" class="editable-cancel" value="x" style="width: 30px;">
</span>
</div>
<div id="editable-tpl-yesno-twitter" style="display: none;">
<span class="editable-inputs nowrap" style="display: none;">
<input type="text" class="editable-value" value="{TWITTER}" />
<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;">
<input type="button" class="editable-cancel" value="x" style="width: 30px;">
</span>
</div>
<div id="editable-tpl-yesno-birthday" style="display: none;">
<span class="editable-inputs nowrap" style="display: none;">
<input type="date" class="editable-value" value="{BIRTHDAY}" />
<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;">
<input type="button" class="editable-cancel" value="x" style="width: 30px;">
</span>
</div>
<!-- ENDIF / EDITABLE_TPLS -->
<!-- IF PAGINATION -->
<div class="menu-sub" id="pg-jump">
<table cellspacing="1" cellpadding="4">

View file

@ -1,3 +1,4 @@
<!-- INCLUDE ajax_edit.tpl -->
<!-- IF IS_ADMIN -->
<script type="text/javascript">
// edit_user_profile