Skip to content

Instantly share code, notes, and snippets.

@glinesbdev
Created January 6, 2015 17:47
Show Gist options
  • Save glinesbdev/1dbf85dec77b29056a4e to your computer and use it in GitHub Desktop.
Save glinesbdev/1dbf85dec77b29056a4e to your computer and use it in GitHub Desktop.
Custom Field Working Example
<div class="control-group integer required {% if form.errors contains 'financials' %}error{% endif %}">
<label class="integer required control-label" for="project_financials"><abbr title="required">*</abbr> Financials</label>
<div class="controls input-prepend">
<textarea class="numeric integer required input-medium tinymce" id="project_financials" name="project[custom_attributes][financials]" step="1" {% if disabled %}disabled{% endif %}>{{ project.financials }}</textarea>
{% if form.errors contains 'financials' %}<p class="help-inline">{{ form.error_messages['financials'] }}</p>{% endif %}
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment