-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1591 from h-kataria/create_dialog_from_container_…
…template Added "Create Service Dialog from Container Template" support
- quinteros-2.2
- quinteros-2.1
- quinteros-2
- quinteros-1
- petrosian-1
- oparin-1.1
- oparin-1
- najdorf-1.3
- najdorf-1.2
- najdorf-1.1
- najdorf-1
- morphy-1
- morphy-1-beta1
- lasker-1
- lasker-1-beta1
- kasparov-2
- kasparov-1
- kasparov-1-beta1.1
- kasparov-1-beta1
- kasparov-1-alpha1
- jansa-4
- jansa-3
- jansa-2
- jansa-1
- jansa-1-rc2
- jansa-1-rc1
- jansa-1-beta1
- jansa-1-alpha1
- ivanchuk-8
- ivanchuk-7
- ivanchuk-6
- ivanchuk-5
- ivanchuk-4
- ivanchuk-3
- ivanchuk-2
- ivanchuk-1
- ivanchuk-1-rc1
- ivanchuk-1-beta2
- ivanchuk-1-beta1
- hammer-11
- hammer-10
- hammer-9
- hammer-8
- hammer-7
- hammer-6
- hammer-5.1
- hammer-5
- hammer-4
- hammer-3
- hammer-2
- hammer-1
- hammer-1-rc2
- hammer-1-rc1
- hammer-1-beta2
- hammer-1-beta1.1
- hammer-1-beta1
- gaprindashvili-7
- gaprindashvili-6
- gaprindashvili-5
- gaprindashvili-4
- gaprindashvili-3
- gaprindashvili-2
- gaprindashvili-1
- gaprindashvili-1-rc1
- gaprindashvili-1-beta2
- gaprindashvili-1-beta1
Showing
7 changed files
with
128 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module ServiceDialogCreationMixin | ||
extend ActiveSupport::Concern | ||
|
||
private | ||
|
||
def dialog_creation_form_field_changed(id) | ||
return unless load_edit(id) | ||
@edit[:new][:dialog_name] = params[:dialog_name] if params[:dialog_name] | ||
render :update do |page| | ||
page << javascript_prologue | ||
page << javascript_hide("buttons_off") | ||
page << javascript_show("buttons_on") | ||
page << "miqSparkle(false);" | ||
end | ||
end | ||
end |
15 changes: 15 additions & 0 deletions
15
app/helpers/application_helper/toolbar/container_template_center.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
app/views/container_template/_service_dialog_from_ct.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#form_div | ||
#basic_info_div | ||
= render :partial => "layouts/flash_msg" | ||
- url = url_for_only_path(:action => "ct_form_field_changed", :id => @edit[:rec_id]) | ||
.form-horizontal | ||
.form-group | ||
%label.col-md-2.control-label | ||
= _('Service Dialog Name') | ||
.col-md-8 | ||
= text_field_tag("dialog_name", | ||
"", | ||
:autocomplete => 'off', | ||
:diabled => false, | ||
:class => "form-control", | ||
:maxlength => 255, | ||
"data-miq_observe" => {:interval => '.5', | ||
:url => url}.to_json) | ||
- unless @explorer | ||
= render(:partial => '/layouts/edit_form_buttons', | ||
:locals => {:record_id => @edit[:rec_id], | ||
:action_url => 'service_dialog_from_ct_submit', | ||
:noreset => true, | ||
:force_cancel_button => true, | ||
:ajax_buttons => true}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
= render :partial => "service_dialog_from_ct" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters