Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4d7b6a6d
Commit
4d7b6a6d
authored
Jun 26, 2017
by
Ruben Davila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add basic form for creating trial licenses [ci skip]
parent
53bfac26
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
+38
-0
app/controllers/trials_controller.rb
app/controllers/trials_controller.rb
+4
-0
app/views/trials/new.html.haml
app/views/trials/new.html.haml
+31
-0
config/routes.rb
config/routes.rb
+3
-0
No files found.
app/controllers/trials_controller.rb
0 → 100644
View file @
4d7b6a6d
class
TrialsController
<
ApplicationController
def
new
end
end
app/views/trials/new.html.haml
0 → 100644
View file @
4d7b6a6d
-
page_title
'Trial license'
%h3
.page-title
Trial License
%main
{
:role
=>
"main"
}
.actions
=
form_tag
oauth_authorization_path
,
method: :post
do
.form-group
=
label_tag
:first_name
=
text_field_tag
:first_name
,
nil
,
class:
"form-control"
,
required:
true
.form-group
=
label_tag
:last_name
=
text_field_tag
:last_name
,
nil
,
class:
"form-control"
,
required:
true
.form-group
=
label_tag
:work_email
=
text_field_tag
:work_email
,
nil
,
class:
"form-control"
,
required:
true
.form-group
=
label_tag
:company_name
=
text_field_tag
:company_name
,
nil
,
class:
"form-control"
,
required:
true
.form-group
=
label_tag
:phone_number
=
text_field_tag
:phone_number
,
nil
,
class:
"form-control"
,
required:
true
.form-group
=
label_tag
:number_of_developers
=
text_field_tag
:number_of_developers
,
nil
,
class:
"form-control"
,
required:
true
.form-group
=
label_tag
:number_of_users
=
text_field_tag
:number_of_users
,
nil
,
class:
"form-control"
,
required:
true
.form-group
=
label_tag
:country
=
text_field_tag
:country
,
nil
,
class:
"form-control"
,
required:
true
.form-group
=
submit_tag
'Start your free trial'
,
class:
"btn btn-default"
config/routes.rb
View file @
4d7b6a6d
...
...
@@ -82,6 +82,9 @@ Rails.application.routes.draw do
# Notification settings
resources
:notification_settings
,
only:
[
:create
,
:update
]
# Trial licenses
resources
:trials
,
only:
[
:new
,
:create
]
draw
:import
draw
:uploads
draw
:explore
...
...
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