File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,13 @@ const WEB_PAGE_TPL = `
76
76
text-transform: uppercase;
77
77
background: #3585f7;
78
78
}
79
+ input[type="submit"]:disabled {
80
+ background: #dfdfdf;
81
+ }
79
82
#message {
80
83
color: #009688;
81
84
}
82
- # error {
85
+ . error {
83
86
color: #f44336;
84
87
}
85
88
</style>
@@ -98,6 +101,9 @@ const WEB_PAGE_TPL = `
98
101
</p>
99
102
<p>
100
103
<label for="system_id">System ID</label>
104
+ {{ if not .SystemIds }}
105
+ <sub class="error">No smpp sessions found. At least one smpp client should connect to smscsim</sub>
106
+ {{ end }}
101
107
<select id="system_id" name="system_id">
102
108
{{ range $systemId := .SystemIds }}
103
109
<option value="{{ $systemId }}">{{ $systemId }}</option>
@@ -109,13 +115,13 @@ const WEB_PAGE_TPL = `
109
115
<textarea id="short_message" name="message" placeholder="Short message..."></textarea>
110
116
</p>
111
117
<p>
112
- <input type="submit" value="Submit">
118
+ <input type="submit" value="Submit" {{ if not .SystemIds }} disabled {{ end }} >
113
119
</p>
114
120
{{ if .Message }}
115
121
<p id="message">{{ .Message }}</p>
116
122
{{ end }}
117
123
{{ if .ErrorMessage }}
118
- <p id ="error">{{ .ErrorMessage }}</p>
124
+ <p class ="error">{{ .ErrorMessage }}</p>
119
125
{{ end }}
120
126
</form>
121
127
</div>
You can’t perform that action at this time.
0 commit comments