Skip to content

Commit

Permalink
added hx-attrs to lang-config gui
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Sep 26, 2024
1 parent a51dfff commit 4ac96e0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions Products/zms/zpt/ZMS/manage_customizelanguagesform.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,21 @@
</tbody>
</table>
<div class="controls save">
<button title="Save Dictionary" name="btn" type="submit" class="btn btn-secondary" value="BTN_SAVE" tal:content="python:here.getZMILangStr('BTN_SAVE')">Save</button>
<button title="Delete Selected Dictionary Terms" name="btn" type="submit" class="btn btn-secondary" value="BTN_DELETE" tal:content="python:here.getZMILangStr('BTN_DELETE')">Delete</button>
<button title="Save Dictionary" name="btn" type="submit" class="btn btn-secondary"
hx-trigger="click"
hx-post="manage_changeLangDictProperties"
hx-target="body"
hx-swap="outerHTML show:top"
hx-on:click="$ZMI.show_spinner(this)"
hx-on:htmx:after-request="$ZMI.reset_spinner(this)"
value="BTN_SAVE"
tal:content="python:here.getZMILangStr('BTN_SAVE')">
Save
</button>
<button title="Delete Selected Dictionary Terms" name="btn" type="submit" class="btn btn-secondary"
value="BTN_DELETE" tal:content="python:here.getZMILangStr('BTN_DELETE')">
Delete
</button>
</div>
</form>

Expand Down
2 changes: 1 addition & 1 deletion Products/zms/zpt/ZMSMetamodelProvider/manage_metas.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
</tbody>
</table>
<div class="controls save">
<button name="btn" type="button" class="btn btn-secondary"
<button name="btn" type="submit" class="btn btn-secondary"
hx-trigger="click"
hx-post="manage_changeMetaProperties"
hx-target="#zmi_manage_tabs_message"
Expand Down

0 comments on commit 4ac96e0

Please sign in to comment.