protected function resolveEditableField(FieldContract $control, array $editable = array())
    {
        $name = $control->get('name');
        if ($control->force_editable) {
            return $control;
        }
        $shouldBeEdited = false;
        foreach ($editable as $editableField) {
            if ($name == $editableField['name']) {
                $shouldBeEdited = true;
                break;
            }
        }
        $disable    = $shouldBeEdited ? [] : ['disabled' => 'disabled', 'readonly' => 'readonly'];
        $attributes = array_merge($control->get('attributes'), $disable);
        $control->attributes($attributes);
        return $control;
    }