Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
angularjs-oasis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Miracle Agomishor Modey
angularjs-oasis
Commits
3084eecb
Commit
3084eecb
authored
6 years ago
by
Miracle Agomishor Modey
Browse files
Options
Downloads
Patches
Plain Diff
Delete index.html
parent
47d3d880
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
index.html
+0
-46
0 additions, 46 deletions
index.html
with
0 additions
and
46 deletions
index.html
deleted
100644 → 0
+
0
−
46
View file @
47d3d880
<!DOCTYPE html>
<html>
<script
src=
"https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"
></script>
<body>
<h2>
Company Type
</h2>
<p>
Classification
</p>
<div
ng-app=
"Classification"
ng-controller=
"myCtrl"
>
<form
name=
"myForm"
>
<select
name=
"classifications"
ng-model=
"selectedClassifications"
ng-options=
"x.class for x in classifications"
>
<option
value=
""
disabled
selected
>
-Select Classification-
</option>
</select>
<p>
Specific Type
</p>
<select
ng-model=
"selectedSpecificType"
ng-options=
"y for y in selectedClassifications.type"
>
<option
value=
""
disabled
selected
>
-Select Type-
</option>
</select>
<br>
<h2>
Proposed Names
</h2>
<p>
Option 1
</p>
<input
type=
"text"
name=
"option1"
ng-model=
"option1"
placeholder=
"Option 1"
ng-pattern=
"selectedClassifications.regex"
ng-disabled=
"!selectedClassifications || !selectedSpecificType"
>
<span
style=
"color:red"
ng-show=
"myForm.option1.$error.pattern"
>
enter a valid name
</span>
<br>
<p>
Option 2
</p>
<input
type=
"text"
placeholder=
"Option 2"
>
<br>
<input
type=
"submit"
ng-model=
"submit"
ng-disabled=
"!selectedClassifications || !selectedSpecificType || !option1"
value=
"Save and Continue"
>
<br>
</form>
</div>
<script>
var
app
=
angular
.
module
(
'
Classification
'
,
[]);
app
.
controller
(
'
myCtrl
'
,
function
(
$scope
)
{
$scope
.
classifications
=
[
{
class
:
'
BUSINESS NAME
'
,
type
:
[
"
BUSINESS NAME
"
],
regex
:
/^
[\s\w]
+
[^
(ltd|limited|plc)
]
$/
},
{
class
:
'
COMPANY
'
,
type
:
[
"
PRIVATE COMPANY LIMITED BY SHARES
"
,
"
PUBLIC COMPANY LIMITED BY SHARES
"
,
"
PRIVATE COMPANY LIMITED BY GUARANTEE
"
,
"
PUBLIC COMPANY LIMITED BY GUARANTEE
"
,
"
PRIVATE UNLIMITED COMPANY
"
,
"
PUBLIC UNLIMITED COMPANY
"
]},
{
class
:
'
INCORPORATED TRUSTEE
'
,
type
:
[
"
INCORPORATED TRUSTEE
"
],
regex
:
/^
[\s\w]
+
[^
(ltd|limited|plc)
]
$/
}];
$scope
.
option1
=
''
;
});
</script>
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment