mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Created template file for AJAX quick actions (#1381)
* Created template file for AJAX quick actions * Update CHANGELOG.md
This commit is contained in:
parent
65d9f6d864
commit
fed538625d
4 changed files with 54 additions and 53 deletions
|
@ -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)
|
||||
|
|
52
styles/templates/default/ajax_edit.tpl
Normal file
52
styles/templates/default/ajax_edit.tpl
Normal 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="»" 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"> {L_YES} </option>
|
||||
<option value="0"> {L_NO} </option>
|
||||
</select>
|
||||
<input type="button" class="editable-submit" value="»" 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>
|
||||
<input type="button" class="editable-submit" value="»" 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"> {$lang['GENDER_SELECT'][0]} </option>
|
||||
<option value="1"> {$lang['GENDER_SELECT'][1]} </option>
|
||||
<option value="2"> {$lang['GENDER_SELECT'][2]} </option>
|
||||
</select>
|
||||
<input type="button" class="editable-submit" value="»" 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="»" 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="»" style="width: 30px; font-weight: bold;">
|
||||
<input type="button" class="editable-cancel" value="x" style="width: 30px;">
|
||||
</span>
|
||||
</div>
|
||||
<!-- ENDIF / EDITABLE_TPLS -->
|
|
@ -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="»" 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"> {L_YES} </option>
|
||||
<option value="0"> {L_NO} </option>
|
||||
</select>
|
||||
<input type="button" class="editable-submit" value="»" 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>
|
||||
<input type="button" class="editable-submit" value="»" 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"> {$lang['GENDER_SELECT'][0]} </option>
|
||||
<option value="1"> {$lang['GENDER_SELECT'][1]} </option>
|
||||
<option value="2"> {$lang['GENDER_SELECT'][2]} </option>
|
||||
</select>
|
||||
<input type="button" class="editable-submit" value="»" 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="»" 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="»" 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">
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- INCLUDE ajax_edit.tpl -->
|
||||
<!-- IF IS_ADMIN -->
|
||||
<script type="text/javascript">
|
||||
// edit_user_profile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue