All Projects → jbox-web → Redmine_bootstrap_kit

jbox-web / Redmine_bootstrap_kit

Licence: mit
A Redmine plugin which makes developing your own Redmine plugin easy ;)

Programming Languages

javascript
184084 projects - #8 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Redmine bootstrap kit

Tabler Rubygem
Rubygem for https://tabler.github.io
Stars: ✭ 77 (+113.89%)
Mutual labels:  rails, bootstrap
Ruby2 Rails4 Bootstrap Heroku
A starter application based on Ruby 2.4, Rails 4.2 and Bootstrap for Sass 3, deployable on Heroku
Stars: ✭ 181 (+402.78%)
Mutual labels:  rails, bootstrap
Instuigram
🎓 Learning Ruby on Rails through building the Instagram Application.
Stars: ✭ 88 (+144.44%)
Mutual labels:  rails, bootstrap
Bootstrap form
Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
Stars: ✭ 1,532 (+4155.56%)
Mutual labels:  rails, bootstrap
Bootsy
Disclaimer: this project is no longer maintained.
Stars: ✭ 455 (+1163.89%)
Mutual labels:  rails, bootstrap
Bootstrap Simple Admin Template
The most reliable HTML, CSS, and JavaScript simple admin template for developing responsive, mobile first web applications on the web.
Stars: ✭ 92 (+155.56%)
Mutual labels:  fontawesome, bootstrap
X Editable Rails
Edit fields easily with X-Editable helper
Stars: ✭ 159 (+341.67%)
Mutual labels:  rails, bootstrap
Bootstrapcdn
Free Bootstrap CDN hosting
Stars: ✭ 1,075 (+2886.11%)
Mutual labels:  fontawesome, bootstrap
Pagy
🏆 The Best Pagination Ruby Gem 🥇
Stars: ✭ 3,340 (+9177.78%)
Mutual labels:  rails, bootstrap
Keditor
KEditor is a jQuery plugin which provides a content editor with drag n drop, configurable contents
Stars: ✭ 261 (+625%)
Mutual labels:  fontawesome, bootstrap
Redmine jenkins
A Redmine plugin which makes building your Jenkins projects easy ;)
Stars: ✭ 69 (+91.67%)
Mutual labels:  redmine, rails
Bh
Bootstrap Helpers for Ruby
Stars: ✭ 834 (+2216.67%)
Mutual labels:  rails, bootstrap
Fontawesome Iconpicker
Font Awesome Icon Picker component for Bootstrap.
Stars: ✭ 519 (+1341.67%)
Mutual labels:  fontawesome, bootstrap
Milog
Milog 是一基于 Ruby on Rails 的个人博客网站
Stars: ✭ 24 (-33.33%)
Mutual labels:  rails, bootstrap
Tolaria
A Rails CMS framework for making your editors happy.
Stars: ✭ 33 (-8.33%)
Mutual labels:  rails
Ultra light wizard
No time to manage a wizard state machine, session variables, or complicated controllers? Use ultra light wizard!! A RESTful session-less validation-friendly simple multi-step form approach in Rails.
Stars: ✭ 35 (-2.78%)
Mutual labels:  rails
Vue Plan
使用vue+vue-router+vuex+boostrap实现计划表系统
Stars: ✭ 33 (-8.33%)
Mutual labels:  bootstrap
Instagram Scheduler
📷 Beautiful way to get shadowbanned on Instagram by ⏰ scheduling your 🌁 photos.
Stars: ✭ 33 (-8.33%)
Mutual labels:  rails
Angular4 Admin Front
Admin system front based on Angular. 基于Angular4的后台管理系统(no longer maintain)
Stars: ✭ 36 (+0%)
Mutual labels:  bootstrap
Startbootstrap Round About
A Bootstrap HTML template for creating about pages - created by Start Bootstrap
Stars: ✭ 35 (-2.78%)
Mutual labels:  bootstrap

Redmine Bootstrap Kit Plugin

GitHub license GitHub release Code Climate

A Redmine plugin which makes developing your own Redmine plugin easy ;)

Why?

As Redmine does not support asset pipeline, we need to install JQuery plugins as Redmine plugins to load them globally.

It provides :

And a set of various Rails helper methods (see below).

Installation

Just clone it in your Redmine plugins directory :

cd REDMINE_ROOT/plugins
git clone https://github.com/jbox-web/redmine_bootstrap_kit.git

What's included?

It provides the following Rails helper methods :

BootstrapKit assets loader :

bootstrap_load_module(rbk_module)

This method loads all JS and CSS files needed by the required module.

The following modules are available :

  • alerts
  • label
  • modals
  • pagination
  • switch
  • tables
  • tabs
  • font_awesome
  • dropdown
  • tooltip
  • notify
  • tag_it

BootstrapSwitch :

bootstrap_switch_tag(opts = {}, &block)

FontAwesome :

fa_icon(icon, opts = {})
label_with_icon(label, icon, icon_opts = {})

AjaxHelper :

render_flash_messages_as_js(target = '#flash-messages', opts = {})
js_render_template(target, template, opts = {})
js_render_partial(target, partial, opts = {})
js_render(target, content, opts = {})

PresenterHelper :

present(object, klass = nil, *args)

JQuery TagIt :

tag_it_list(id, list_opts = {}, tag_it_opts = {}, &block)

WillPaginateHelper :

paginate(collection, opts = {})

ZeroClipboardHelper:

zero_clipboard_button_for(target)

How to use?

To use Redmine Bootstrap Kit helper methods you must first add :redmine_bootstrap_kit helper in your controller :

class MyPluginController < ApplicationController
  ...

  helper :redmine_bootstrap_kit

end

Then with the bootstrap_load_module method you can load the desired assets in your views :

<% content_for :header_tags do %>
  <%= bootstrap_load_base %>
  <%= bootstrap_load_module(:alerts) %>
  <%= bootstrap_load_module(:label) %>
  <%= bootstrap_load_module(:modals) %>
  <%= bootstrap_load_module(:pagination) %>
  <%= bootstrap_load_module(:switch) %>
  <%= bootstrap_load_module(:tables) %>
  <%= bootstrap_load_module(:tabs) %>
  <%= bootstrap_load_module(:font_awesome) %>
  <%= bootstrap_load_module(:dropdown) %>
  <%= bootstrap_load_module(:tooltip) %>
  <%= bootstrap_load_module(:notify) %>
  <%= bootstrap_load_module(:tag_it) %>
<% end %>

The bootstrap_load_base method call is needed if you want to use provided JS helpers (see below).

To create BootstrapSwitch buttons

In your views :

<% content_for :header_tags do %>
  <%= bootstrap_load_base %>
  <%= bootstrap_load_module(:switch) %>
<% end %>

<p>
  <label>This is a switch button</label>
  <%= bootstrap_switch_tag do %>
    <%= hidden_field_tag "extra[enable]", "false" %>
    <%= check_box_tag "extra[enable]" %>
  <% end %>
</p>

<%= javascript_tag do %>
  $(document).ready(function() { setBootstrapSwitch(); });
<% end %>

To create TagIt lists

In your views :

<% content_for :header_tags do %>
  <%= bootstrap_load_base %>
  <%= bootstrap_load_module(:tag_it) %>
<% end %>

<p>
  <label>This is a TagIt list</label>
</p>

<%= tag_it_list 'plugin_emails_list',
                { name: 'plugin[emails_list][]' },
                { placeholder: '+ add email' } do %>
  <li>[email protected]</li>
  <li>[email protected]</li>
<% end %>

<%= javascript_tag do %>
  $(document).ready(function() { setTagIt(); });
<% end %>

Contribute

You can contribute to this plugin in many ways such as :

  • Helping with documentation
  • Contributing code (features or bugfixes)
  • Reporting a bug
  • Submitting translations
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].