提交 65f28a31 编写于 作者: V Vincent Latombe

Radio should be smarter

上级 6523693e
......@@ -22,11 +22,30 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<!--
<input type="radio"> tag that takes true/false for @checked.
Note that safari doesn't support onchange.
-->
<?jelly escape-by-default='true'?>
<input type="radio" name="${attrs.name}" onclick="${attrs.onclick}" id="${attrs.id}" value="${attrs.value}"
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<st:documentation>
&lt;input type="radio"> tag that takes true/false for @checked, which is more Jelly friendly.
Note that safari doesn't support onchange.
<st:attribute name="name" />
<st:attribute name="checked" />
<st:attribute name="value" />
<st:attribute name="default">
The default value of the check box, in case both @checked and @instance are null.
If this attribute is unspecified or null, it defaults to unchecked, otherwise checked.
</st:attribute>
<st:attribute name="id" />
<st:attribute name="onclick" />
<st:attribute name="title">
If specified, this human readable text will follow the radio, and clicking this text also
toggles the radio.
</st:attribute>
</st:documentation>
<input type="radio" name="${attrs.name}" onclick="${attrs.onclick}" id="${attrs.id}" value="${attrs.value}"
checked="${attrs.checked?'true':null}"/>
<j:if test="${attrs.title!=null}">
<label class="attach-previous">${attrs.title}</label>
</j:if>
</j:jelly>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册