first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php echo form_tag('attribute_template/save', array('id' => 'sf_admin_edit_form', 'name' => 'sf_admin_edit_form', 'multipart' => true,)) ?>
|
||||
<fieldset id="sf_fieldset_none">
|
||||
<div class="st_header">
|
||||
<div>
|
||||
<h2><?php echo __('Dodaj nowy szablon') ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="st_fieldset-content" id="sf_fieldset_none_slide">
|
||||
<div class="form-row">
|
||||
<?php echo label_for('attribute_template[name]', __('Nazwa').':') ?>
|
||||
<div class="content<?php if ($sf_request->hasError('attribute_template{name}')): ?> form-error<?php endif; ?>">
|
||||
<?php if ($sf_request->hasError('attribute_template{name}')): ?>
|
||||
<?php echo form_error('attribute_template{name}', array('class' => 'form-error-msg')) ?>
|
||||
<?php endif; ?>
|
||||
<?php echo input_tag('attribute_template[name]') ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<?php echo st_get_admin_actions_head() ?>
|
||||
<?php echo st_get_admin_action('add', __('Dodaj'), null, 'name=save_and_list') ?>
|
||||
<?php echo st_get_admin_actions_foot() ?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
@@ -0,0 +1,26 @@
|
||||
<li>
|
||||
<b><?php echo $index ?>.</b>
|
||||
<span id="<?php echo 'attribute_field_'.$attribute_field->getId() ?>" class="st_application-st_attribute_template-attribute_row"><?php echo $attribute_field->getName() ?></span>
|
||||
<ul class="st_attribute_template-field-menu">
|
||||
<li>
|
||||
<?php echo link_to(image_tag('backend/category_tree/arrows/arrow_up.png'),'stAttributeFieldBackend/attributeMoveUp?id='.$attribute_field->getId().'&template_id='.$attribute_field->getAttributeTemplateId()) ?>
|
||||
</li>
|
||||
<li>
|
||||
<?php echo link_to(image_tag('backend/category_tree/arrows/arrow_down.png'),'stAttributeFieldBackend/attributeMoveDown?id='.$attribute_field->getId().'&template_id='.$attribute_field->getAttributeTemplateId()) ?>
|
||||
</li>
|
||||
<li>
|
||||
<?php echo link_to(image_tag('backend/icons/delete.png'),'stAttributeFieldBackend/deleteAttribute?id='.$attribute_field->getId().'&template_id='.$attribute_field->getAttributeTemplateId()) ?>
|
||||
</li>
|
||||
</ul>
|
||||
<br class="st_clear_all" />
|
||||
|
||||
<div id="attribute_field_validation_message_ajax<?php echo $attribute_field->getId() ?>" style="color: red;display: none"><?php echo __("Wprowadzono niepoprawne dane. Zmiany cofnięte.") ?></div>
|
||||
<script type="text/javascript">
|
||||
|
||||
//<![CDATA[
|
||||
new Ajax.InPlaceEditor('attribute_field_<?php echo $attribute_field->getId() ?>', '/backend_dev.php/attribute_field/ajaxEditAttribute/id/<?php echo $attribute_field->getId() ?>', {cancelControl:'button',okText:"Ok",cancelText:"<?php echo __("Anuluj") ?>",savingText:"<?php echo __("Zapisywanie...") ?>",clickToEditText:"<?php echo __("Kliknij aby edytować") ?>"});
|
||||
//]]>
|
||||
|
||||
</script>
|
||||
|
||||
</li>
|
||||
@@ -0,0 +1,34 @@
|
||||
<script type="text/javascript" src="/sf/sf_web_debug/js/main.js"></script>
|
||||
<script type="text/javascript" src="/sfPrototypePlugin/js/prototype.js"></script>
|
||||
<script type="text/javascript" src="/sfPrototypePlugin/js/effects.js"></script>
|
||||
<script type="text/javascript" src="/sfPrototypePlugin/js/controls.js"></script>
|
||||
<?php use_stylesheet('backend/stAttributeTemplate.css') ?>
|
||||
|
||||
<ul id="st_attribute_template-field-list">
|
||||
<?php foreach ($attribute_template->getAttributeFields() as $index => $attribute_field): ?>
|
||||
<?php st_include_partial('stAttributeFieldBackend/attribute_row', array('attribute_field' => $attribute_field, 'index' => $index + 1)) ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<br />
|
||||
<?php echo form_tag('attribute_field/addAttribute', array('id' => 'sf_admin_edit_form', 'name' => 'sf_admin_edit_form', 'multipart' => true,)) ?>
|
||||
<?php echo object_input_hidden_tag($attribute_template, 'getId') ?>
|
||||
<fieldset>
|
||||
<div class="st_fieldset-content" id="sf_fieldset_zarz__dzaj_atrybutami_slide">
|
||||
<div class="form-row">
|
||||
<?php echo label_for('attribute_template[name]', __('Nazwa atrybutu:'), array("class"=>"st_application-st_attribute_template_attribute_template_name")) ?>
|
||||
<div class="content<?php if ($sf_request->hasError('attribute_template{name}')): ?> form-error<?php endif; ?>">
|
||||
<?php if ($sf_request->hasError('attribute_template{name}')): ?>
|
||||
<?php echo form_error('attribute_template{name}', array('class' => 'form-error-msg')) ?>
|
||||
<?php endif; ?>
|
||||
<?php echo input_tag('attribute_template[name]') ?>
|
||||
</div>
|
||||
<?php echo st_get_admin_actions_head() ?>
|
||||
<div id="st_application-st_attribute_template-add_button" ><?php echo st_get_admin_action('add', __('Dodaj')) ?></div>
|
||||
<div id="st_application-st_attribute_template-html_button"><?php echo st_get_admin_action('_generateHTML', __('Przejdź do szablonu'), 'attribute_template/list', array ()) ?></div>
|
||||
<?php echo st_get_admin_actions_foot() ?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<br />
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date', 'VisualEffect', 'stAdminGenerator') ?>
|
||||
|
||||
<?php echo st_get_admin_head('stAttributeTemplatePlugin', __('Szablony dla produktu - Edycja szablonu \'%%name%%\'',
|
||||
array('%%name%%' => $attribute_template->getName())), __('Tworzenie szablonów atrybutów dla produktów.',
|
||||
array()), array (
|
||||
0 => 'stProduct',
|
||||
)) ?>
|
||||
<?php st_include_partial('stAttributeFieldBackend/menu', array()) ?>
|
||||
|
||||
<div id="sf_admin_header">
|
||||
<?php st_include_partial('stAttributeFieldBackend/edit_header', array('attribute_template' => $attribute_template)) ?>
|
||||
</div>
|
||||
|
||||
<div id="sf_admin_content">
|
||||
<?php st_include_partial('stAttributeFieldBackend/edit_messages', array('attribute_template' => $attribute_template, 'labels' => $labels)) ?>
|
||||
<?php st_include_partial('stAttributeFieldBackend/edit_form', array('attribute_template' => $attribute_template, 'labels' => $labels)) ?>
|
||||
</div>
|
||||
<br class="st_clear_all" />
|
||||
|
||||
<div id="sf_admin_footer">
|
||||
<?php st_include_partial('stAttributeFieldBackend/edit_footer', array('attribute_template' => $attribute_template)) ?>
|
||||
</div>
|
||||
<?php echo st_get_admin_foot() ?>
|
||||
@@ -0,0 +1,3 @@
|
||||
<script language='javascript'>
|
||||
document.getElementById("attribute_field_validation_message_ajax<?php echo $id ?>").style.display = "block";
|
||||
</script>
|
||||
@@ -0,0 +1,3 @@
|
||||
<script language='javascript'>
|
||||
document.getElementById("attribute_field_validation_message_ajax<?php echo $id ?>").style.display = "none";
|
||||
</script>
|
||||
Reference in New Issue
Block a user