forked from UPC/ravada
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UPC#275] Add textarea for description
Add column in domains table Add upgrade column
- Loading branch information
Showing
4 changed files
with
18 additions
and
43 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
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 |
---|---|---|
@@ -1,43 +1,15 @@ | ||
% my $disable_rename = 0; | ||
% my $message_rename; | ||
% if ( $domain->is_active ) { | ||
% $message_rename = 'This VM is running and can\'t be renamed.'; | ||
% $disable_rename = 1; | ||
% } | ||
% if ( $domain->domain->has_managed_save_image ) { | ||
% $message_rename = 'This VM has a saved hybernated state and can\'t be renamed.'; | ||
% $disable_rename = 1; | ||
% } | ||
%# if $domain->is_paused || $domain->domain->has_managed_save_image; | ||
|
||
<div class="panel-body"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
|
||
% if ($message_rename) { | ||
<div class="panel panel-warning"> | ||
<div class="panel-heading"><%= $message_rename %></div> | ||
</div> | ||
% } | ||
<span>Useful information that may contain: e.g. Access credentials, machine type</span> | ||
<input class="form-control" type="text" name="new_name" ng-model="new_name" | ||
ng-change="validate_new_name(showmachine.name)" | ||
ng-disabled="<%= $disable_rename %>" | ||
> | ||
<button type="button" ng-disabled="<%= $disable_rename %> || new_name_duplicated" | ||
ng-click="rename(showmachine.id, showmachine.name)"> | ||
<i class="fa fa-check" aria-hidden="true"></i> | ||
</button> | ||
<div class="form-group has-error"> | ||
<label ng-show="new_name_duplicated" | ||
class="control-label" for="new_name"> | ||
This name is duplicated | ||
</label> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
|
||
|
||
</div> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<div class="form-group"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<form class="form-inline" action="<%= $action %>" method="post"> | ||
<label>This information will be available to user</label> | ||
<textarea class="col-md-12" rows="6" placeholder="E.g. Perl Dev Classrom Group B Login: uservm Password: uservm Version 2.1" required></textarea> | ||
</div> | ||
<div class="col-md-6"> | ||
</div> | ||
</div> | ||
<input type="submit" class="btn btn-default"> | ||
</form> | ||
</div> | ||
</div> |