Skip to content

Commit

Permalink
Change the layout of the form
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Jan 24, 2024
1 parent 4338e62 commit f161ac1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Resources/translations/messages.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ setono_sylius_callout:
channels: Channels
code: Code
elements: Element
elements_info: If the callout should be associated with a certain element, select it here. Otherwise, select 'Default'
element_labels:
default: Default
enabled: Enabled
ends_at: Ends at
layout: Layout
name: Name
position: Position
positions:
Expand Down
14 changes: 7 additions & 7 deletions src/Resources/views/Admin/Callout/_form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@
</div>
<div class="column">
<div class="ui segment">
<div class="ui icon info message">
<i class="info circle icon"></i>
{{ 'setono_sylius_callout.form.callout.elements_info'|trans }}
</div>
{{ form_row(form.elements) }}
{{ form_row(form.position) }}
{{ form_row(form.startsAt) }}
{{ form_row(form.endsAt) }}
</div>
</div>
</div>
</div>
<div class="ui segment">
<h4 class="ui dividing header">{{ 'setono_sylius_callout.form.callout.layout'|trans }}</h4>
{{ form_row(form.elements) }}
{{ form_row(form.position) }}
</div>
<div class="ui segment">
<h4 class="ui dividing header">{{ 'setono_sylius_callout.form.callout.rules'|trans }}</h4>
<div class="ui icon info message">
<i class="info circle icon"></i>
{{ 'setono_sylius_callout.form.callout.rules_info'|trans }}
</div>
<div class="field" id="rules">
{{ form_row(form.rules) }}
{{ form_widget(form.rules) }}
</div>
</div>
</div>
Expand Down

0 comments on commit f161ac1

Please sign in to comment.