Skip to content

Commit

Permalink
new long map definition
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Sep 12, 2016
1 parent 6d79392 commit 091942d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/appier_extras/parts/admin/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class Event(base.Base):
)

arguments = appier.field(
type = dict
type = dict,
meta = "longmap"
)

@classmethod
Expand Down
3 changes: 3 additions & 0 deletions src/appier_extras/parts/admin/templates/admin/macros.html.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@
{% elif meta == "map" %}
<input type="text" class="text-field {{ disabled_s|safe }}" name="{{ name }}"
value="{{ value|dumps if value else '{}' }}" data-error="{{ error }}" />
{% elif meta == "longmap" %}
<textarea class="text-area {{ disabled_s|safe }}" name="{{ name }}"
data-error="{{ error }}">{{ value|dumps if value else "{}" }}</textarea>
{% elif meta == "bool" %}
{% if value %}
<input type="radio" name="{{ name }}" id="{{ name }}-1" value="1" checked="1" />
Expand Down

0 comments on commit 091942d

Please sign in to comment.