Skip to content

Commit

Permalink
temp working commit
Browse files Browse the repository at this point in the history
  • Loading branch information
goldpbear committed Mar 23, 2017
1 parent 23c3a36 commit 2076aba
Show file tree
Hide file tree
Showing 7 changed files with 359 additions and 313 deletions.
59 changes: 59 additions & 0 deletions src/base/jstemplates/place-detail-field-types.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!-- Template for all fields displayed by the place detail view. -->

{{#is type "datetime"}}
<p class="place-value place-value-{{ ../name }}">{{nlToBr content}}</p>
{{/is}}

{{#is type "text"}}
<p class="place-value place-value-{{ ../name }}">{{nlToBr content}}</p>
{{/is}}

{{#is type "textarea"}}
<p class="place-value place-value-{{ ../name }}">{{{nlToBr content}}}</p>
{{/is}}

{{#is type "richTextarea"}}
<span class="place-value place-value-{{ ../name }}">{{{content}}}</span>
{{/is}}

{{#is type "radio_big_buttons"}}
<ul>
{{#each content}}
{{#if selected}}
<li class="multi-select-response">{{ label }} </li>
{{/if}}
{{/each}}
</ul>
{{/is}}

{{#is type "checkbox_big_buttons"}}
<ul>
{{#each content}}
{{#if selected}}
<li class="multi-select-response">{{ label }} </li>
{{/if}}
{{/each}}
</ul>
{{/is}}

{{#is type "binary_toggle"}}
<p>
{{#if content.selected}}
{{ content.selectedLabel }}
{{else}}
{{ content.unselectedLabel }}
{{/if}}
</p>
{{/is}}

{{#is type "dropdown"}}
{{#each content}}
<p>
{{#if selected}}
{{nlToBr label}}
{{/if}}
</p>
{{/each}}
{{/is}}

<div style="clear:both"></div>
Loading

0 comments on commit 2076aba

Please sign in to comment.