Skip to content

Commit

Permalink
verstka fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sidorenkoda committed Apr 26, 2016
1 parent 1978a19 commit 1cb3e9c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/widgets/CheckBoxList.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CheckBoxList extends AttributeHandler
TEMPLATE;

static $addButton = <<<TEMPLATE
<span class=\"symbol\"><span class=\"fa fa-square-o\"></span></span> Checkboxes
<span class="symbol"><span class="fa fa-square-o"></span></span> Checkboxes
TEMPLATE;

static $defaultAttributes = <<<TEMPLATE
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/DropDownList.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DropDownList extends AttributeHandler
TEMPLATE;

static $addButton = <<<TEMPLATE
<span class=\"symbol\"><span class=\"fa fa-caret-down\"></span></span> Dropdown
<span class="symbol"><span class="fa fa-caret-down"></span></span> Dropdown
TEMPLATE;

static $defaultAttributes = <<<TEMPLATE
Expand Down
20 changes: 10 additions & 10 deletions src/widgets/EncodedTextInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,40 @@ class EncodedTextInput extends TextInput
const VALUE_HANDLER_CLASS = '\mirocow\eav\handlers\ArrayValueHandler';

static $order = 3;

static $view = <<<TEMPLATE
<textarea type='text'
rows=<%= rf.get(Formbuilder.options.mappings.AREA_ROWS) %>
cols=<%= rf.get(Formbuilder.options.mappings.AREA_COLS) %> />
</textarea>
TEMPLATE;

static $edit = <<<TEMPLATE
<%= Formbuilder.templates['edit/text_area']() %>
TEMPLATE;

static $addButton = <<<TEMPLATE
<span class='symbol'><span class='fa fa-font'></span></span> Input textarea
<span class='symbol'><span class='fa fa-paragraph'></span></span> Input textarea
TEMPLATE;

static $defaultAttributes = <<<TEMPLATE
function (attrs) {
debugger;
attrs.field_options.size = 'small';
return attrs;
}
TEMPLATE;


public function init()
{
AttributeHandler::init();
}

public function run()
{
return $this->owner->activeForm
->field($this->owner, $this->getAttributeName(), ['template' => "{input}\n{hint}\n{error}"])
->textArea();
}
->field($this->owner, $this->getAttributeName(), ['template' => "{input}\n{hint}\n{error}"])
->textArea();
}
}
2 changes: 1 addition & 1 deletion src/widgets/RadioList.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class RadioList extends AttributeHandler
TEMPLATE;

static $addButton = <<<TEMPLATE
<span class=\"symbol\"><span class=\"fa fa-circle-o\"></span></span> Radio
<span class="symbol"><span class="fa fa-circle-o"></span></span> Radio
TEMPLATE;

static $defaultAttributes = <<<TEMPLATE
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/Textarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Textarea extends AttributeHandler
TEMPLATE;

static $addButton = <<<TEMPLATE
<span class='symbol'><span class='fa fa-font'></span></span> Input textarea
<span class='symbol'><span class='fa fa-paragraph'></span></span> Input textarea
TEMPLATE;

static $defaultAttributes = <<<TEMPLATE
Expand Down

0 comments on commit 1cb3e9c

Please sign in to comment.