Added some help to the edit form.

This commit is contained in:
Tim Schumacher 2014-07-08 12:21:52 +02:00
parent 896bc2064e
commit ceeab5332e
3 changed files with 14 additions and 3 deletions

View file

@ -28,4 +28,12 @@
margin-right: 0.5rem;
}
}
}
form .ui.form {
.field {
.attached-label > input, .attached-label > textarea {
margin-bottom: 2rem;
}
}
}

View file

@ -54,8 +54,9 @@
<div class="field">
<label class="control-label required" for="event_summary">Beschreibung</label>
<div class="ui left labeled icon input">
<div class="ui left labeled icon input attached-label">
<textarea name="description">{{ entity.description|default('') }}</textarea>
<div class="ui bottom attached label">Du kannst hier <a href="https://en.wikipedia.org/wiki/Markdown">Markdown</a> benutzen.</div>
</div>
</div>
@ -91,13 +92,14 @@
<div class="field">
<label class="" for="event_tags">Tags</label>
<div class="ui left labeled icon input">
<div class="ui left icon input attached-label">
<input type="text"
id="event_tags"
name="tags"
value="{{ entity.getTagsAsText() }}"
class="form-control">
<i class="icon tag"></i>
<div class="ui bottom attached label">Du kannst hier kommasepariert <a href="https://en.wikipedia.org/wiki/Tag_%28metadata%29">Tags</a> angeben.</div>
</div>
</div>

View file

@ -2,7 +2,8 @@
{% block css %}
{% stylesheets filter="compass"
"@CalciferBundle/Resources/assets/css/jquery.datetimepicker.scss" %}
"@CalciferBundle/Resources/assets/css/jquery.datetimepicker.scss"
"@CalciferBundle/Resources/assets/css/events.scss" %}
<link rel="stylesheet" href="{{ asset_url }}"/>
{% endstylesheets %}
{% endblock %}