allow html in summary, notes and description

Conflicts:

	src/main/template/param_readonly.handlebars
	src/main/template/param_readonly_required.handlebars
This commit is contained in:
Rintcius Blok
2012-08-18 11:33:39 +01:00
parent af5ec2a700
commit ed7bf75e9a
6 changed files with 21 additions and 10 deletions

View File

@@ -12,14 +12,14 @@
</h3> </h3>
<ul class='options'> <ul class='options'>
<li> <li>
<a href='#!/{{resourceName}}/{{nickname}}_{{httpMethod}}' class="toggleOperation">{{summary}}</a> <a href='#!/{{resourceName}}/{{nickname}}_{{httpMethod}}' class="toggleOperation">{{{summary}}}</a>
</li> </li>
</ul> </ul>
</div> </div>
<div class='content' id='{{resourceName}}_{{nickname}}_{{httpMethod}}_content' style='display:none'> <div class='content' id='{{resourceName}}_{{nickname}}_{{httpMethod}}_content' style='display:none'>
{{#if notes}} {{#if notes}}
<h4>Implementation Notes</h4> <h4>Implementation Notes</h4>
<p>{{notes}}</p> <p>{{{notes}}}</p>
{{/if}} {{/if}}
<form accept-charset='UTF-8' action='#' class='sandbox' method='post'> <form accept-charset='UTF-8' action='#' class='sandbox' method='post'>
<div style='margin:0;padding:0;display:inline'></div> <div style='margin:0;padding:0;display:inline'></div>

View File

@@ -17,5 +17,5 @@
{{/if}} {{/if}}
</td> </td>
<td width='500'>{{description}}</td> <td width='500'>{{{description}}}</td>

View File

@@ -17,5 +17,5 @@
{{/each}} {{/each}}
</select> </select>
</td> </td>
<td width='500'>{{description}}</td> <td width='500'>{{{description}}}</td>

View File

@@ -1,4 +1,10 @@
<td class='code'>{{name}}</td> <td class='code'>{{name}}</td>
<td>-</td> <td>
<td width='500'>{{description}}</td> {{#if isBody}}
<textarea class='body-textarea' readonly='readonly' name='{{name}}'>{{defaultValue}}</textarea>
{{else}}
{{defaultValue}}
{{/if}}
</td>
<td width='500'>{{{description}}}</td>

View File

@@ -1,4 +1,9 @@
<td class='code required'>{{name}}</td> <td class='code required'>{{name}}</td>
<td>-</td> <td>
<td width='500'>{{description}}</td> {{#if isBody}}
<textarea class='body-textarea' readonly='readonly' placeholder='(required)' name='{{name}}'>{{defaultValue}}</textarea>
{{else}}
{{defaultValue}}
{{/if}}
</td>
<td width='500'>{{{description}}}</td>

View File

@@ -16,5 +16,5 @@
{{/if}} {{/if}}
</td> </td>
<td width='500'> <td width='500'>
<strong>{{description}}</strong> <strong>{{{description}}}</strong>
</td> </td>