Skip to content

Commit

Permalink
updated from main
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Oct 3, 2024
1 parent c7f92a1 commit 751c442
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Products/zms/zpt/ZMSMetamodelProvider/manage_main.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@
</div>
<a tal:condition="python:metaObj.get('acquired',None)" class="btn btn-secondary" target="_blank"
tal:attributes="
href python:'%s/metaobj_manager/manage_main?lang=%s&id=%s'%(context.getRootElement().absolute_url(),request['lang'],metaObj['id']);
title python:'acquired YYY from: %s (%s)'%(context.getRootElement().getHome().id, context.getRootElement().attr('titlealt'))"
href python:'%s/metaobj_manager/manage_main?lang=%s&id=%s'%(context.getHome().aq_parent.content.absolute_url(),request['lang'],metaObj['id']);
title python:'acquired from: %s (%s)'%(context.getHome().aq_parent.content.id, context.getHome().aq_parent.content.attr('titlealt'))"
><i class="fas fa-share" title="acquired"></i></a>
<a class="btn btn-secondary" target="_blank" value="BTN_SEARCH"
tal:attributes="
Expand Down
2 changes: 1 addition & 1 deletion Products/zms/zpt/ZMSObject/input_fields.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
<button type="submit" name="btn" class="btn btn-secondary"
tal:attributes="value python:'BTN_%s'%command.upper()"
tal:content="python:here.getZMILangStr('BTN_%s'%command.upper())">
Action
Command
</button>
<button type="submit" name="btn" class="btn btn-secondary"
value="BTN_CANCEL"
Expand Down
6 changes: 4 additions & 2 deletions Products/zms/zpt/ZMSRecordSet/grid.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
metaObjIds python:here.getMetaobjIds();
metaObjAttrIds python:here.getMetaobjAttrIds(metaObj['id']);
metaObjAttrs python:metaObj['attrs'][1:];
metaObjAttrs python:[x for x in metaObjAttrs if x.get('custom', 0) == 1];
num_rows python:here.attr('_num_rows');
command python:'Save';
dummy0 python:standard.once('zmiGraphicExtEdit',request);
Expand Down Expand Up @@ -152,10 +153,11 @@
<div class="card-body">
<div class="form-group row">
<div class="controls save">
<button type="submit" name="btn" class="btn btn-secondary"
<button type="submit" name="btn" class="btn btn-secondary"
tal:condition="python:here.getPrimaryLanguage()==request.get('lang')"
tal:attributes="value python:'BTN_%s'%command.upper()"
tal:content="python:here.getZMILangStr('BTN_%s'%command.upper())">
Action
Command
</button>
<button type="submit" name="btn" class="btn btn-secondary"
value="BTN_CANCEL"
Expand Down
2 changes: 1 addition & 1 deletion Products/zms/zpt/ZMSSqlDb/input_form.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
tal:content="python:here.getZMILangStr('BTN_CANCEL')">
Cancel
</button>
</div
</div>
</div><!-- .form-group -->

</div><!-- card-body -->
Expand Down
18 changes: 18 additions & 0 deletions Products/zms/zpt/common/zmi_manage_tabs_message.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@
<tal:block tal:define="dummy0 python:request.set('manage_tabs_message','')"></tal:block>
<tal:block tal:define="dummy0 python:standard.set_session_value(here,'manage_tabs_message','')"></tal:block>
</div>
<div class="alert alert-warning"
tal:define="msg python:standard.get_session_value(here,'manage_tabs_warning_message','') or request.get('manage_tabs_warning_message','')"
tal:condition="python:msg!=''">
<a class="close" data-dismiss="alert" href="#">&times;</a>
<tal:block tal:content="structure msg">manage_tabs_warning_message</tal:block>
(<tal:block tal:content="structure python:here.getLangFmtDate(here.ZopeTime())">ZopeTime</tal:block>)
<tal:block tal:define="dummy0 python:request.set('manage_tabs_warning_message','');"></tal:block>
<tal:block tal:define="dummy0 python:standard.set_session_value(here,'manage_tabs_warning_message','')"></tal:block>
</div>
<div class="alert alert-danger"
tal:define="msg python:standard.get_session_value(here,'manage_tabs_danger_message','') or request.get('manage_tabs_danger_message','')"
tal:condition="python:msg!=''">
<a class="close" data-dismiss="alert" href="#">&times;</a>
<tal:block tal:content="structure msg">manage_tabs_danger_message</tal:block>
(<tal:block tal:content="structure python:here.getLangFmtDate(here.ZopeTime())">ZopeTime</tal:block>)
<tal:block tal:define="dummy0 python:request.set('manage_tabs_danger_message','');"></tal:block>
<tal:block tal:define="dummy0 python:standard.set_session_value(here,'manage_tabs_danger_message','')"></tal:block>
</div>
<div class="alert alert-danger" tal:condition="python:request.get('manage_tabs_error_message')">
<a class="close" data-dismiss="alert" href="javascript:;">&times;</a>
<tal:block tal:content="structure python:request.get('manage_tabs_error_message')">manage_tabs_error_message</tal:block>
Expand Down

0 comments on commit 751c442

Please sign in to comment.