jQuery.template("Tmpl-community-add-plan-dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="add-plan-dialog">  <h3>'),typeof edit!="undefined"&&edit!=null&&(typeof edit=="function"?edit.call($item):edit)?(__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Edit plan"))),__.push("")):!0&&(__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Add new plan"))),__.push("")),__.push("<\/h3>  <hr />  <label>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Braintree plan Id"))),__.push('   <input type="text" id="plan-id" '),typeof edit!="undefined"&&edit!=null&&(typeof edit=="function"?edit.call($item):edit)&&__.push('disabled="disabled"'),__.push(' />   <span class="error">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Id is required"))),__.push("<\/span>  <\/label>  <label>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Display Name"))),__.push('   <input type="text" id="plan-name"/>   <span class="error">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Display Name is required"))),__.push('<\/span>  <\/label>  <label class="roles">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Content roles"))),__.push('   <select multiple="multiple" size="4" id="plan-roles">    '),typeof roles!="undefined"&&roles!=null&&$.each(typeof roles=="function"?roles.call($item):roles,function(n,role){with(this)__.push("    <option>"),typeof role!="undefined"&&role!=null&&__.push($.encode(typeof role=="function"?role.call($item):role)),__.push("<\/option>    ")}),__.push('   <\/select>   <span class="error">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Roles are required"))),__.push("<\/span>  <\/label>   <label>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Annual Price"))),__.push('   <input type="text" id="price-annual"/>   <span class="error">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Add number"))),__.push("<\/span>  <\/label>  <label>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Quarter Price"))),__.push('   <input type="text" id="price-quarter"/>    <span class="error">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Add number"))),__.push('<\/span>  <\/label>   <label class="duration">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Trial duration"))),__.push('   <input type="text" id="trial-duration" disabled="disabled" />   <span class="error">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Please add days"))),__.push('<\/span>  <\/label>   <label class="block fix"><input type="checkbox" id="trial"/> '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Trial"))),__.push('<\/label>  <label class="block fix"><input type="checkbox" id="unsafe-trial" /> '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Trial w/o payment"))),__.push('<\/label>  <hr />   <a class="ui-button kn-spinbutton add" href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/community-add-plan-dialog.htm","Save"))),__.push("<\/a> <\/div>");return __})