Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
49fa9907
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
49fa9907
编写于
8月 07, 2013
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use control-group classes for inline forms in admin area
上级
a43a3803
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
38 addition
and
38 deletion
+38
-38
app/views/admin/groups/edit.html.haml
app/views/admin/groups/edit.html.haml
+6
-6
app/views/admin/groups/new.html.haml
app/views/admin/groups/new.html.haml
+4
-4
app/views/admin/hooks/index.html.haml
app/views/admin/hooks/index.html.haml
+2
-2
app/views/admin/users/_form.html.haml
app/views/admin/users/_form.html.haml
+26
-26
未找到文件。
app/views/admin/groups/edit.html.haml
浏览文件 @
49fa9907
...
...
@@ -4,21 +4,21 @@
-
if
@group
.
errors
.
any?
.alert.alert-error
%span
=
@group
.
errors
.
full_messages
.
first
.c
learfix
.group_name_holder
.c
ontrol-group
.group_name_holder
=
f
.
label
:name
do
Group name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Example Group"
,
class:
"xxlarge"
.c
learfix
.group-description-holder
.c
ontrol-group
.group-description-holder
=
f
.
label
:description
,
"Details"
.
input
.
controls
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"xxlarge js-gfm-input"
,
rows:
4
.c
learfix
.group_name_holder
.c
ontrol-group
.group_name_holder
=
f
.
label
:path
do
%span
.cred
Group path is
.
input
.
controls
=
f
.
text_field
:path
,
placeholder:
"example-group"
,
class:
"xxlarge danger"
%ul
.cred
%li
Changing group path can have unintended side effects.
...
...
app/views/admin/groups/new.html.haml
浏览文件 @
49fa9907
...
...
@@ -4,14 +4,14 @@
-
if
@group
.
errors
.
any?
.alert.alert-error
%span
=
@group
.
errors
.
full_messages
.
first
.c
learfix
.c
ontrol-group
=
f
.
label
:name
do
Group name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"xxlarge left"
.c
learfix
.group-description-holder
.c
ontrol-group
.group-description-holder
=
f
.
label
:description
,
"Details"
.
input
.
controls
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"xxlarge js-gfm-input"
,
rows:
4
.form-actions
...
...
app/views/admin/hooks/index.html.haml
浏览文件 @
49fa9907
...
...
@@ -10,9 +10,9 @@
.alert.alert-error
-
@hook
.
errors
.
full_messages
.
each
do
|
msg
|
%p
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:url
,
"URL:"
.
input
.
controls
=
f
.
text_field
:url
,
class:
"text_field xxlarge input-xpadding"
=
f
.
submit
"Add System Hook"
,
class:
"btn btn-create"
...
...
app/views/admin/users/_form.html.haml
浏览文件 @
49fa9907
...
...
@@ -8,28 +8,28 @@
%fieldset
%legend
Account
.c
learfix
.c
ontrol-group
=
f
.
label
:name
.
input
.
controls
=
f
.
text_field
:name
,
required:
true
,
autocomplete:
"off"
%span
.help-inline
* required
.c
learfix
.c
ontrol-group
=
f
.
label
:username
.
input
.
controls
=
f
.
text_field
:username
,
required:
true
,
autocomplete:
"off"
%span
.help-inline
* required
.c
learfix
.c
ontrol-group
=
f
.
label
:email
.
input
.
controls
=
f
.
text_field
:email
,
required:
true
,
autocomplete:
"off"
%span
.help-inline
* required
-
if
@user
.
new_record?
%fieldset
%legend
Password
.c
learfix
.c
ontrol-group
=
f
.
label
:password
.
input
.
controls
%strong
A temporary password will be generated and sent to user.
%br
...
...
@@ -37,33 +37,33 @@
-
else
%fieldset
%legend
Password
.c
learfix
.c
ontrol-group
=
f
.
label
:password
.
input
=
f
.
password_field
:password
,
disabled:
f
.
object
.
force_random_password
.c
learfix
.
controls
=
f
.
password_field
:password
,
disabled:
f
.
object
.
force_random_password
.c
ontrol-group
=
f
.
label
:password_confirmation
.
input
=
f
.
password_field
:password_confirmation
,
disabled:
f
.
object
.
force_random_password
.
controls
=
f
.
password_field
:password_confirmation
,
disabled:
f
.
object
.
force_random_password
%fieldset
%legend
Access
.row
.span8
.c
learfix
.c
ontrol-group
=
f
.
label
:projects_limit
.
input
=
f
.
number_field
:projects_limit
.
controls
=
f
.
number_field
:projects_limit
.c
learfix
.c
ontrol-group
=
f
.
label
:can_create_group
.
input
=
f
.
check_box
:can_create_group
.
controls
=
f
.
check_box
:can_create_group
.c
learfix
.c
ontrol-group
=
f
.
label
:can_create_team
.
input
=
f
.
check_box
:can_create_team
.
controls
=
f
.
check_box
:can_create_team
.c
learfix
.c
ontrol-group
=
f
.
label
:admin
do
%strong
.cred
Administrator
.
input
=
f
.
check_box
:admin
.
controls
=
f
.
check_box
:admin
.span4
-
unless
@user
.
new_record?
.alert.alert-error
...
...
@@ -75,15 +75,15 @@
=
link_to
'Block User'
,
block_admin_user_path
(
@user
),
confirm:
'USER WILL BE BLOCKED! Are you sure?'
,
method: :put
,
class:
"btn btn-small btn-remove"
%fieldset
%legend
Profile
.c
learfix
.c
ontrol-group
=
f
.
label
:skype
.
input
=
f
.
text_field
:skype
.c
learfix
.
controls
=
f
.
text_field
:skype
.c
ontrol-group
=
f
.
label
:linkedin
.
input
=
f
.
text_field
:linkedin
.c
learfix
.
controls
=
f
.
text_field
:linkedin
.c
ontrol-group
=
f
.
label
:twitter
.
input
=
f
.
text_field
:twitter
.
controls
=
f
.
text_field
:twitter
.actions
-
if
@user
.
new_record?
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录