Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apollo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
apollo
Commits
f4b036fb
Commit
f4b036fb
authored
Aug 02, 2016
by
Jason Song
Committed by
GitHub
Aug 02, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #367 from lepdou/0801_0805
fix namespace name no error message
parents
4f3d02b6
5399d643
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
17 deletions
+25
-17
apollo-portal/src/main/resources/static/namespace.html
apollo-portal/src/main/resources/static/namespace.html
+25
-17
No files found.
apollo-portal/src/main/resources/static/namespace.html
View file @
f4b036fb
...
...
@@ -35,12 +35,17 @@
<div
class=
"row text-right"
style=
"padding-right: 20px;"
>
<div
class=
"btn-group btn-group-sm"
role=
"group"
aria-label=
"..."
>
<button
type=
"button"
class=
"btn btn-default"
ng-class=
"{active:type=='link'}"
ng-click=
"switchType('link')"
>
关联已存在的Namespace
</button>
<button
type=
"button"
class=
"btn btn-default"
ng-class=
"{active:type=='create'}"
ng-click=
"switchType('create')"
>
创建新的Namespace
</button>
<button
type=
"button"
class=
"btn btn-default"
ng-class=
"{active:type=='link'}"
ng-click=
"switchType('link')"
>
关联已存在的Namespace
</button>
<button
type=
"button"
class=
"btn btn-default"
ng-class=
"{active:type=='create'}"
ng-click=
"switchType('create')"
>
创建新的Namespace
</button>
</div>
</div>
<form
class=
"form-horizontal"
name=
"namespaceForm"
valdr-type=
"AppNamespace"
style=
"margin-top: 30px;"
ng-show=
"step == 1"
ng-submit=
"createNamespace()"
>
<form
class=
"form-horizontal"
name=
"namespaceForm"
valdr-type=
"AppNamespace"
style=
"margin-top: 30px;"
ng-show=
"step == 1"
ng-submit=
"createNamespace()"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
应用ID
</label>
<div
class=
"col-sm-6"
valdr-form-group
>
...
...
@@ -63,24 +68,22 @@
<apollorequiredfiled></apollorequiredfiled>
名称
</label>
<div
class=
"col-sm-4"
valdr-form-group
>
<div
class=
"input-group"
ng-show=
"appNamespace.isPublic"
>
<span
class=
"input-group-addon"
ng-bind=
"appBaseInfo.namespacePrefix"
></span>
<input
type=
"text"
name=
"namespaceName"
class=
"form-control"
ng-model=
"appNamespace.name"
ng-required=
"type == 'create'"
>
</div>
<div
ng-show=
"!appNamespace.isPublic"
>
<input
type=
"text"
name=
"namespaceName"
class=
"form-control"
ng-model=
"appNamespace.name"
ng-required=
"type == 'create'"
>
<div
ng-class=
"{'input-group':appNamespace.isPublic}"
>
<span
class=
"input-group-addon"
ng-show=
"appNamespace.isPublic"
ng-bind=
"appBaseInfo.namespacePrefix"
></span>
<input
type=
"text"
name=
"namespaceName"
class=
"form-control"
ng-model=
"appNamespace.name"
>
</div>
</div>
<div
class=
"col-sm-2"
ng-if=
"hasRootPermission"
>
<select
class=
"form-control"
ng-model=
"appNamespace.format"
>
<select
class=
"form-control"
n
ame=
"format"
n
g-model=
"appNamespace.format"
>
<option
value=
"properties"
>
properties
</option>
<option
value=
"xml"
>
xml
</option>
</select>
</div>
<span
ng-show=
"appNamespace.isPublic"
ng-bind=
"concatNamespace()"
style=
"line-height: 34px;"
></span>
<span
ng-show=
"appNamespace.isPublic"
ng-bind=
"concatNamespace()"
style=
"line-height: 34px;"
></span>
</div>
<div
class=
"form-group"
ng-show=
"type == 'create' && hasRootPermission"
>
<label
class=
"col-sm-3 control-label"
>
...
...
@@ -88,17 +91,20 @@
类型
</label>
<div
class=
"col-sm-4"
valdr-form-group
>
<label
class=
"radio-inline"
>
<input
type=
"radio"
name=
"namespaceType"
value=
"true"
ng-value=
"true"
ng-model=
"appNamespace.isPublic"
>
public
<input
type=
"radio"
name=
"namespaceType"
value=
"true"
ng-value=
"true"
ng-model=
"appNamespace.isPublic"
>
public
</label>
<label
class=
"radio-inline"
>
<input
type=
"radio"
name=
"namespaceType"
value=
"false"
ng-value=
"false"
ng-model=
"appNamespace.isPublic"
>
private
<input
type=
"radio"
name=
"namespaceType"
value=
"false"
ng-value=
"false"
ng-model=
"appNamespace.isPublic"
>
private
</label>
</div>
</div>
<div
class=
"form-group"
ng-show=
"type == 'create'"
valdr-form-group
>
<label
class=
"col-sm-3 control-label"
>
备注
</label>
<div
class=
"col-sm-7"
valdr-form-group
>
<textarea
class=
"form-control"
rows=
"3"
name=
"comment"
ng-model=
"appNamespace.comment"
></textarea>
<textarea
class=
"form-control"
rows=
"3"
name=
"comment"
ng-model=
"appNamespace.comment"
></textarea>
</div>
</div>
<div
class=
"form-group"
ng-show=
"type == 'link'"
>
...
...
@@ -114,7 +120,9 @@
<div
class=
"form-group"
>
<div
class=
"col-sm-offset-3 col-sm-10"
>
<button
type=
"submit"
class=
"btn btn-primary"
ng-disabled=
"namespaceForm.$invalid || submitBtnDisabled"
>
提交
</button>
<button
type=
"submit"
class=
"btn btn-primary"
ng-disabled=
"namespaceForm.$invalid || submitBtnDisabled"
>
提交
</button>
</div>
</div>
</form>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment