Skip to content

Commit 09f5716

Browse files
authored
Merge pull request #13 from vint47/master
fix class for submit element
2 parents 24ad0ce + d40a140 commit 09f5716

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Form/Element/Submit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class Submit extends Element
1414
{
15-
protected $buttonClass = 'btn-primary';
15+
protected $buttonClass = 'btn';
1616
protected $isIgnored = true;
1717

1818
public function setButtonClass($buttonClass)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="form__element form__element_type_submit">
22
<div class="form__element-container">
3-
<button @foreach($attributes as $attributeName => $attributeValue) {{ $attributeName }}="{{ $attributeValue }}" @endforeach @if (!array_has($attributes, 'class')) class="btn" @endif type="submit" name="{{$elementName}}" value="1">{{ $label }}</button>
3+
<button @foreach($attributes as $attributeName => $attributeValue) @if ($attributeName != 'class') {{ $attributeName }}="{{ $attributeValue }}" @endif @endforeach class="{{ $buttonClass }} {{ $class }}"type="submit" name="{{$elementName}}" value="1">{{ $label }}</button>
44
</div>
55
</div>

0 commit comments

Comments
 (0)