-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed a few examples to generate more like Mac (#712)
- Loading branch information
Showing
8 changed files
with
1,595 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1726,10 +1726,10 @@ Fields can be disabled using the standard Rails form helper option. | |
```erb | ||
<%= bootstrap_form_for @user do |f| %> | ||
<div class="row g-3"> | ||
<div class="col-auto"><%= f.email_field :email, disabled: true %></div> | ||
<div class="col-auto"><%= f.password_field :password, disabled: true %></div> | ||
<div class="col-auto"><%= f.text_area :comments, disabled: true %></div> | ||
<div class="col-auto"><%= f.text_field :status, disabled: true %></div> | ||
<div class="col-auto"><%= f.email_field :email, disabled: true, size: 18 %></div> | ||
<div class="col-auto"><%= f.password_field :password, disabled: true, size: 18 %></div> | ||
<div class="col-auto"><%= f.text_area :comments, disabled: true, rows: 2, cols: 18 %></div> | ||
<div class="col-auto"><%= f.text_field :status, disabled: true, size: 18 %></div> | ||
<div class="col-auto"><%= f.number_field :misc, label: "Number", disabled: true %></div> | ||
<div class="col-auto"><%= f.radio_button :preferences, 1, disabled: true %></div> | ||
<div class="col-auto"><%= f.check_box :terms, disabled: true %></div> | ||
|
@@ -1748,26 +1748,25 @@ Generated HTML: | |
<div class="col-auto"> | ||
<div class="mb-3"> | ||
<label class="form-label required" for="user_email">Email</label> | ||
<input class="form-control" disabled id="user_email" name="user[email]" required="required" type="email" value="[email protected]"> | ||
<input class="form-control" disabled id="user_email" name="user[email]" required="required" size="18" type="email" value="[email protected]"> | ||
</div> | ||
</div> | ||
<div class="col-auto"> | ||
<div class="mb-3"> | ||
<label class="form-label" for="user_password">Password</label> | ||
<input class="form-control" disabled id="user_password" name="user[password]" type="password"> | ||
<input class="form-control" disabled id="user_password" name="user[password]" size="18" type="password"> | ||
</div> | ||
</div> | ||
<div class="col-auto"> | ||
<div class="mb-3"> | ||
<label class="form-label" for="user_comments">Comments</label> | ||
<textarea class="form-control" disabled id="user_comments" name="user[comments]"> | ||
</textarea> | ||
<textarea class="form-control" cols="18" disabled id="user_comments" name="user[comments]" rows="2"> </textarea> | ||
</div> | ||
</div> | ||
<div class="col-auto"> | ||
<div class="mb-3"> | ||
<label class="form-label" for="user_status">Status</label> | ||
<input class="form-control" disabled id="user_status" name="user[status]" type="text"> | ||
<input class="form-control" disabled id="user_status" name="user[status]" size="18" type="text"> | ||
</div> | ||
</div> | ||
<div class="col-auto"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,8 @@ | |
<head> | ||
<title>Hello, world!</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Arimo"> | ||
|
||
<!-- Bootstrap CSS --> | ||
<!-- CSS only --> | ||
<%# <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> %> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.33.0/codemirror.min.css"> | ||
|
||
<style type="text/css"> | ||
|
@@ -37,6 +35,12 @@ | |
<%= stylesheet_link_tag "application" %> | ||
<%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %> | ||
|
||
<style type="text/css"> | ||
:root { | ||
--bs-body-font-family: "Arimo", Arial, sans-serif; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
|
@@ -45,8 +49,6 @@ | |
</div> | ||
|
||
<!-- Optional JavaScript --> | ||
<!-- JavaScript Bundle with Popper --> | ||
<%# <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script> %> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.33.0/codemirror.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.33.0/mode/htmlmixed/htmlmixed.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.33.0/mode/xml/xml.min.js"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.