Skip to content

Commit 4f1e038

Browse files
authored
Merge pull request #282 from grycap/devel
Minor change
2 parents 3501076 + 6fbc03b commit 4f1e038

4 files changed

Lines changed: 5 additions & 10 deletions

File tree

app/templates/default_form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{% set min_length = value.constraints | selectattr('min_length') | map(attribute='min_length') | list %}
1515
{% set max_length = value.constraints | selectattr('max_length') | map(attribute='max_length') | list %}
1616
<div class="form-group">
17-
<label for="{{key}}">{% if value.description %}{{value.description}}{% else %}{{key}}{% endif %}</label>
17+
<label for="{{key}}" style="white-space: pre-wrap;">{% if value.description %}{{value.description}}{% else %}{{key}}{% endif %}</label>
1818

1919
<!-- select type if constraints are defined -->
2020
{% set constraints = value.constraints | selectattr('valid_values') | map(attribute='valid_values') | list %}

app/templates/input_types.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
<div class="form-group">
22
{% if value.tag_type is not defined or value.tag_type != "hidden" %}
3-
<label for="{{key}}">
4-
{% if value.description is defined %}
5-
{{value.description}}
6-
{% else %}
7-
{{key}}
8-
{% endif %}
9-
</label>
3+
<label for="{{key}}" style="white-space: pre-wrap;">{% if value.description is defined %}{{value.description}}{% else %}{{key}}{% endif %}</label>
104
{% endif %}
115

126
{% set min_length = value.constraints | selectattr('min_length') | map(attribute='min_length') | list %}

app/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import ast
2929
import time
3030
import sys
31-
from radl.radl import outport
3231
from radl.radl_json import parse_radl
3332
from flask import flash, g
3433
from app import appdb

tosca-templates/simple-node-disk.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ topology_template:
4545
type: map
4646
entry_schema:
4747
type: PortSpec
48-
description: Comma separated list of ports to be Opened in the Cloud site (eg. 22,80,443)
48+
description: |
49+
Comma separated list of ports to be Opened in the Cloud site (eg. 22,80,443).
50+
You can also include the remote CIDR (eg. 8.8.0.0/24-22,9.9.9.0/24-80,443).
4951
default: 22
5052

5153
node_templates:

0 commit comments

Comments
 (0)