mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Add help to reserved domains #2962
This commit is contained in:
parent
da937acc34
commit
05b5dcd3ca
22 changed files with 236781 additions and 99 deletions
|
@ -14,3 +14,5 @@ $(document).on 'page:change', ->
|
|||
# client side validate all forms
|
||||
$('form').each ->
|
||||
$(this).validate()
|
||||
|
||||
$('[data-toggle="popover"]').popover()
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
- content_for :actions do
|
||||
= link_to('#', class: 'btn btn-default', "data-container": "body", "data-title": t('list_format_is_in_yaml'), "data-content": "domain.ee: authinfopw<br>seconddomain.ee:<br>thirddomain.ee: authinfo3<br><br>#{t('if_auth_info_is_left_empty_it_will_be_auto_generated')}", "data-placement": "left", "data-toggle": "popover", "data-html" => "true") do
|
||||
%span.glyphicon.glyphicon-info-sign{"aria-hidden" => "true"}
|
||||
|
||||
= render 'shared/title', name: t(:reserved_domains)
|
||||
|
||||
= form_tag([:admin, :reserved_domains]) do |f|
|
||||
|
|
|
@ -921,3 +921,5 @@ en:
|
|||
force_delete_subject: 'Kustutusmenetluse teade'
|
||||
welcome_to_eis_registrar_portal: 'Welcome to EIS Registrar portal'
|
||||
interfaces: 'Interfaces'
|
||||
list_format_is_in_yaml: 'List format is in YAML'
|
||||
if_auth_info_is_left_empty_it_will_be_auto_generated: 'If auth info is left empty, it will be auto generated'
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,19 @@
|
|||
(function() {
|
||||
$(document).on('page:change', function() {
|
||||
$('.selectize').selectize({
|
||||
allowEmptyOption: true
|
||||
});
|
||||
$('.js-datepicker').datepicker({
|
||||
showAnim: "",
|
||||
autoclose: true,
|
||||
dateFormat: "dd.mm.yy",
|
||||
changeMonth: true,
|
||||
changeYear: true
|
||||
});
|
||||
$('form').each(function() {
|
||||
return $(this).validate();
|
||||
});
|
||||
return $('[data-toggle="popover"]').popover();
|
||||
});
|
||||
|
||||
}).call(this);
|
|
@ -1 +1,19 @@
|
|||
(function(){$(document).on("page:change",function(){return $(".selectize").selectize({allowEmptyOption:!0}),$(".js-datepicker").datepicker({showAnim:"",autoclose:!0,dateFormat:"dd.mm.yy",changeMonth:!0,changeYear:!0}),$("form").each(function(){return $(this).validate()})})}).call(this);
|
||||
(function() {
|
||||
$(document).on('page:change', function() {
|
||||
$('.selectize').selectize({
|
||||
allowEmptyOption: true
|
||||
});
|
||||
$('.js-datepicker').datepicker({
|
||||
showAnim: "",
|
||||
autoclose: true,
|
||||
dateFormat: "dd.mm.yy",
|
||||
changeMonth: true,
|
||||
changeYear: true
|
||||
});
|
||||
$('form').each(function() {
|
||||
return $(this).validate();
|
||||
});
|
||||
return $('[data-toggle="popover"]').popover();
|
||||
});
|
||||
|
||||
}).call(this);
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,34 @@
|
|||
(function() {
|
||||
$(document).on('page:change', function() {
|
||||
$('form').each(function() {
|
||||
return $(this).validate();
|
||||
});
|
||||
$('.js-contact-form').on('restoreDefault', function(e) {
|
||||
var form;
|
||||
form = $(e.target);
|
||||
form.find('.js-ident-tip').hide();
|
||||
switch ($('.js-ident-country-code option:selected').val()) {
|
||||
case 'EE':
|
||||
return $('.js-ident-type').find('option[value=birthday]').prop('disabled', true);
|
||||
default:
|
||||
return $('.js-ident-type').find('option[value=birthday]').prop('disabled', false);
|
||||
}
|
||||
});
|
||||
$('.js-ident-country-code').change(function(e) {
|
||||
var form;
|
||||
form = $('.js-contact-form');
|
||||
return form.trigger('restoreDefault');
|
||||
});
|
||||
$('.js-ident-type').change(function(e) {
|
||||
var form;
|
||||
form = $('.js-contact-form');
|
||||
form.trigger('restoreDefault');
|
||||
switch (e.target.value) {
|
||||
case 'birthday':
|
||||
return form.find('.js-ident-tip').show();
|
||||
}
|
||||
});
|
||||
return $('.js-contact-form').trigger('restoreDefault');
|
||||
});
|
||||
|
||||
}).call(this);
|
|
@ -1 +1,34 @@
|
|||
(function(){$(document).on("page:change",function(){return $("form").each(function(){return $(this).validate()}),$(".js-contact-form").on("restoreDefault",function(t){var e;switch(e=$(t.target),e.find(".js-ident-tip").hide(),$(".js-ident-country-code option:selected").val()){case"EE":return $(".js-ident-type").find("option[value=birthday]").prop("disabled",!0);default:return $(".js-ident-type").find("option[value=birthday]").prop("disabled",!1)}}),$(".js-ident-country-code").change(function(){var t;return t=$(".js-contact-form"),t.trigger("restoreDefault")}),$(".js-ident-type").change(function(t){var e;switch(e=$(".js-contact-form"),e.trigger("restoreDefault"),t.target.value){case"birthday":return e.find(".js-ident-tip").show()}}),$(".js-contact-form").trigger("restoreDefault")})}).call(this);
|
||||
(function() {
|
||||
$(document).on('page:change', function() {
|
||||
$('form').each(function() {
|
||||
return $(this).validate();
|
||||
});
|
||||
$('.js-contact-form').on('restoreDefault', function(e) {
|
||||
var form;
|
||||
form = $(e.target);
|
||||
form.find('.js-ident-tip').hide();
|
||||
switch ($('.js-ident-country-code option:selected').val()) {
|
||||
case 'EE':
|
||||
return $('.js-ident-type').find('option[value=birthday]').prop('disabled', true);
|
||||
default:
|
||||
return $('.js-ident-type').find('option[value=birthday]').prop('disabled', false);
|
||||
}
|
||||
});
|
||||
$('.js-ident-country-code').change(function(e) {
|
||||
var form;
|
||||
form = $('.js-contact-form');
|
||||
return form.trigger('restoreDefault');
|
||||
});
|
||||
$('.js-ident-type').change(function(e) {
|
||||
var form;
|
||||
form = $('.js-contact-form');
|
||||
form.trigger('restoreDefault');
|
||||
switch (e.target.value) {
|
||||
case 'birthday':
|
||||
return form.find('.js-ident-tip').show();
|
||||
}
|
||||
});
|
||||
return $('.js-contact-form').trigger('restoreDefault');
|
||||
});
|
||||
|
||||
}).call(this);
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue