@import views.addons._ @import helper._ @(domain: Domain, resourceForm: Form[ResourceRecord]) @main("DYD - Domains") {
@inputText( resourceForm("name"), '_label -> "Name", '_showConstraints -> false, 'placeholder -> "name" ) | @select( resourceForm("type"), options(ResourceRecord.options()), '_label -> "Type", '_showConstraints -> false ) | @inputText( resourceForm("value"), '_label -> "Value", '_showConstraints -> false, 'size -> 25, 'placeholder -> "value" ) | @inputText( resourceForm("ttl"), '_label -> "TTL", '_showConstraints -> false, 'size -> 4, 'placeholder -> "3600" ) | @inputText( resourceForm("pref"), '_label -> "Pref", '_showConstraints -> false, 'size -> 4, 'placeholder -> "" ) |
|
---|---|---|---|---|---|
@rr.getName() | @rr.getType() | @if(Ip.valid(rr.getValue())) { @rr.getValue() } else { @rr.getValue() } | @rr.getTtl() | @rr.getPref() | @form(routes.AdminResourceRecords.delete(domain.name, rr.id)) { } |