| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <div id="tv-wprops-form{$tv|default}"></div>
- {literal}
- <script type="text/javascript">
- // <![CDATA[
- var params = {
- {/literal}{foreach from=$params key=k item=v name='p'}
- '{$k}': '{$v|escape:"javascript"}'{if NOT $smarty.foreach.p.last},{/if}
- {/foreach}{literal}
- };
- var oc = {'change':{fn:function(){Ext.getCmp('modx-panel-tv').markDirty();},scope:this}};
- MODx.load({
- xtype: 'panel'
- ,layout: 'form'
- ,autoHeight: true
- ,labelAlign: 'top'
- ,cls: 'form-with-labels'
- ,border: false
- ,items: [{
- xtype: 'textfield'
- ,fieldLabel: _('width')
- ,name: 'prop_w'
- ,id: 'prop_w{/literal}{$tv|default}{literal}'
- ,value: params['w'] || '100%'
- ,listeners: oc
- ,anchor: '100%'
- },{
- xtype: 'textfield'
- ,fieldLabel: _('height')
- ,name: 'prop_h'
- ,id: 'prop_h{/literal}{$tv|default}{literal}'
- ,value: params['h'] || '300px'
- ,listeners: oc
- ,anchor: '100%'
- }]
- ,renderTo: 'tv-wprops-form{/literal}{$tv|default}{literal}'
- });
- // ]]>
- </script>
- {/literal}
|